Lines Matching full:hour
77 /// Makes a new `DateTime` from the current date, hour, minute and second.
80 /// Panics on invalid hour, minute and/or second.
82 pub fn and_hms(&self, hour: u32, min: u32, sec: u32) -> DateTime<Tz> { in and_hms()
83 self.and_hms_opt(hour, min, sec).expect("invalid time") in and_hms()
86 /// Makes a new `DateTime` from the current date, hour, minute and second.
89 /// Returns `None` on invalid hour, minute and/or second.
91 pub fn and_hms_opt(&self, hour: u32, min: u32, sec: u32) -> Option<DateTime<Tz>> { in and_hms_opt()
92 NaiveTime::from_hms_opt(hour, min, sec).and_then(|time| self.and_time(time)) in and_hms_opt()
95 /// Makes a new `DateTime` from the current date, hour, minute, second and millisecond.
99 /// Panics on invalid hour, minute, second and/or millisecond.
101 pub fn and_hms_milli(&self, hour: u32, min: u32, sec: u32, milli: u32) -> DateTime<Tz> { in and_hms_milli()
102 self.and_hms_milli_opt(hour, min, sec, milli).expect("invalid time") in and_hms_milli()
105 /// Makes a new `DateTime` from the current date, hour, minute, second and millisecond.
109 /// Returns `None` on invalid hour, minute, second and/or millisecond.
113 hour: u32, in and_hms_milli_opt()
118 NaiveTime::from_hms_milli_opt(hour, min, sec, milli).and_then(|time| self.and_time(time)) in and_hms_milli_opt()
121 /// Makes a new `DateTime` from the current date, hour, minute, second and microsecond.
125 /// Panics on invalid hour, minute, second and/or microsecond.
127 pub fn and_hms_micro(&self, hour: u32, min: u32, sec: u32, micro: u32) -> DateTime<Tz> { in and_hms_micro()
128 self.and_hms_micro_opt(hour, min, sec, micro).expect("invalid time") in and_hms_micro()
131 /// Makes a new `DateTime` from the current date, hour, minute, second and microsecond.
135 /// Returns `None` on invalid hour, minute, second and/or microsecond.
139 hour: u32, in and_hms_micro_opt()
144 NaiveTime::from_hms_micro_opt(hour, min, sec, micro).and_then(|time| self.and_time(time)) in and_hms_micro_opt()
147 /// Makes a new `DateTime` from the current date, hour, minute, second and nanosecond.
151 /// Panics on invalid hour, minute, second and/or nanosecond.
153 pub fn and_hms_nano(&self, hour: u32, min: u32, sec: u32, nano: u32) -> DateTime<Tz> { in and_hms_nano()
154 self.and_hms_nano_opt(hour, min, sec, nano).expect("invalid time") in and_hms_nano()
157 /// Makes a new `DateTime` from the current date, hour, minute, second and nanosecond.
161 /// Returns `None` on invalid hour, minute, second and/or nanosecond.
165 hour: u32, in and_hms_nano_opt()
170 NaiveTime::from_hms_nano_opt(hour, min, sec, nano).and_then(|time| self.and_time(time)) in and_hms_nano_opt()