Lines Matching refs:TimeDisplay
23 pub struct TimeDisplay { struct
30 impl TimeDisplay { implementation
37 pub fn new(secs: i64, nsecs: u32) -> TimeDisplay { in new() argument
38 TimeDisplay { secs, nsecs } in new()
99 fn get_current_time() -> TimeDisplay { in get_current_time()
101 TimeDisplay::new(since_epoch.as_secs() as i64, since_epoch.subsec_nanos()) in get_current_time()
117 use super::TimeDisplay;
121 let epoch_time = TimeDisplay::new(0, 0); in test_utc_display_ok()
124 let twok_time = TimeDisplay::new(946684900, 0); in test_utc_display_ok()
131 let max_seconds = TimeDisplay::new(i64::MAX, 0); in test_utc_display_err()
133 let max_nanos = TimeDisplay::new(0, 2_000_000_000); in test_utc_display_err()
139 let epoch_time = TimeDisplay::new(0, 0); in test_utc_display_hms()
142 let twok_time = TimeDisplay::new(946684900, 0); in test_utc_display_hms()
149 let epoch_time = TimeDisplay::new(0, 0); in test_utc_display_log()
152 let twok_time = TimeDisplay::new(946684900, 200); in test_utc_display_log()