Struct iso8601::Time [−][src]
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, }
A time object
Fields
hour: u32
a 24th of a day
minute: u32
60 discrete parts of an hour
second: u32
a minute are 60 of these
millisecond: u32
everything after a .
tz_offset_hours: i32
depends on where you're at
tz_offset_minutes: i32
Methods
impl Time
[src]
impl Time
Trait Implementations
impl Display for Time
[src]
impl Display for Time
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for Time
[src]
impl Eq for Time
impl PartialEq for Time
[src]
impl PartialEq for Time
fn eq(&self, other: &Time) -> bool
[src]
fn eq(&self, other: &Time) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Time) -> bool
[src]
fn ne(&self, other: &Time) -> bool
This method tests for !=
.
impl Debug for Time
[src]
impl Debug for Time
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for Time
[src]
impl Copy for Time
impl Clone for Time
[src]
impl Clone for Time
fn clone(&self) -> Time
[src]
fn clone(&self) -> Time
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Default for Time
[src]
impl Default for Time
impl FromStr for Time
[src]
impl FromStr for Time