Lines Matching refs:hms
796 fn hms(&self) -> (u32, u32, u32) { in hms() method
816 self.hms().0 in hour()
831 self.hms().1 in minute()
857 self.hms().2 in second()
1249 let (hour, min, sec) = self.hms(); in fmt()
1661 let hms = NaiveTime::from_hms; in test_time_addassignment() localVariable
1662 let mut time = hms(12, 12, 12); in test_time_addassignment()
1664 assert_eq!(time, hms(22, 12, 12)); in test_time_addassignment()
1666 assert_eq!(time, hms(8, 12, 12)); in test_time_addassignment()
1671 let hms = NaiveTime::from_hms; in test_time_subassignment() localVariable
1672 let mut time = hms(12, 12, 12); in test_time_subassignment()
1674 assert_eq!(time, hms(2, 12, 12)); in test_time_subassignment()
1676 assert_eq!(time, hms(16, 12, 12)); in test_time_subassignment()
1774 let hms = |h, m, s| NaiveTime::from_hms(h, m, s); in test_time_parse_from_str() localVariable
1777 Ok(hms(12, 34, 56)) in test_time_parse_from_str()
1779 assert_eq!(NaiveTime::parse_from_str("PM 12:59", "%P %H:%M"), Ok(hms(12, 59, 0))); in test_time_parse_from_str()