(epoch_ms: i64)
| 683 | } |
| 684 | |
| 685 | fn format_short_time(epoch_ms: i64) -> String { |
| 686 | if epoch_ms <= 0 { |
| 687 | return String::from("--:--:--"); |
| 688 | } |
| 689 | let secs = epoch_ms / 1000; |
| 690 | let time_of_day = secs % 86400; |
| 691 | let hours = time_of_day / 3600; |
| 692 | let minutes = (time_of_day % 3600) / 60; |
| 693 | let seconds = time_of_day % 60; |
| 694 | format!("{hours:02}:{minutes:02}:{seconds:02}") |
| 695 | } |
nothing calls this directly
no outgoing calls
no test coverage detected