pub struct Time {
pub hour: u32,
pub minute: u32,
pub second: u32,
pub millisecond: u32,
pub tz_offset_hours: i32,
pub tz_offset_minutes: i32,
}Expand description
A time object.
assert_eq!(
iso8601::Time::from_str("17:08:08.793Z"),
Ok(iso8601::Time{ hour: 17, minute: 8, second: 8, millisecond: 793, tz_offset_hours: 0, tz_offset_minutes: 00 })
)Fields§
§hour: u32a 24th of a day
minute: u3260 discrete parts of an hour
second: u32a minute are 60 of these
millisecond: u32everything after a .
tz_offset_hours: i32the hour part of the timezone offset from UTC
tz_offset_minutes: i32the minute part of the timezone offset from UTC
Implementations§
Trait Implementations§
impl Copy for Time
impl Eq for Time
impl StructuralPartialEq for Time
Auto Trait Implementations§
impl Freeze for Time
impl RefUnwindSafe for Time
impl Send for Time
impl Sync for Time
impl Unpin for Time
impl UnwindSafe for Time
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more