Struct edtf::Time [−][src]
pub struct Time { /* fields omitted */ }Expand description
The time portion of a DateTime.
Implementations
Create a time. Panics if it’s invalid.
Create a time. Returns None if it’s invalid for any reason.
Get the TzOffset. If None is returned, this represents a timestamp which did not
specify a timezone.
If using the chrono interop, None means you should attempt to convert to a chrono::NaiveDate
This is supported on crate feature chrono only.
chrono only.Strips out the timezone and returns a chrono::NaiveTime.
Trait Implementations
Returns the number of nanoseconds since the whole non-leap second. The range from 1,000,000,000 to 1,999,999,999 represents the leap second. Read more
Makes a new value with the hour number changed. Read more
Makes a new value with the minute number changed. Read more
Makes a new value with the second number changed. Read more
Makes a new value with nanoseconds since the whole non-leap second changed. Read more
Returns the hour number from 1 to 12 with a boolean flag, which is false for AM and true for PM. Read more
Returns the number of non-leap seconds past the last midnight.
Auto Trait Implementations
impl RefUnwindSafe for Time
impl UnwindSafe for Time
Blanket Implementations
Mutably borrows from an owned value. Read more