Struct sqldatetime::Time [−][src]
#[repr(transparent)]pub struct Time(_);
Expand description
Time represents a valid time of day.
Implementations
Creates a Time from the given hour, minute, second and microsecond.
Safety
This function is unsafe because the values are not checked for validity! Before using it, check that the values are all correct.
Creates a Time from the given hour, minute, second and microsecond.
Checks if the given hour, minute, second and microsecond fields are valid.
Creates a Time from the given microseconds without checking validity.
Safety
This function is unsafe because the microsecond value is not checked for validity! Before using it, check that the value is correct.
Creates a Time from the given microseconds
Extracts (hour, minute, second, microsecond) from the time.
Formats Time by given format string.
Parses Time from given string and format.
Time subtracts Time
Time adds IntervalDT
Time subtracts IntervalDT
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Time
impl UnwindSafe for Time
Blanket Implementations
Mutably borrows from an owned value. Read more