pub struct DateTime {
pub date_fullyear: u32,
pub date_month: u8,
pub date_mday: u8,
pub time_hour: u8,
pub time_minute: u8,
pub time_second: f64,
pub timezone_offset: DateTimeTimezoneOffset,
}Expand description
A struct representing a date in the format of RFC3339.
Fields§
§date_fullyear: u32The full year (must be 4DIGIT).
date_month: u8The month (1-12).
date_mday: u8The day (1-31).
time_hour: u8The hour (0-23).
time_minute: u8The minute (0-59).
time_second: f64The seconds, including millisconds (seconds are 0-59, while the mantissa may be any
length, though HLS recommends milliscond accuracy via the EXT-X-PROGRAM-DATE-TIME
documentation).
timezone_offset: DateTimeTimezoneOffsetThe timezone offset.
Trait Implementations§
Source§impl From<DateTime> for WritableTagValue<'_>
Available on non-crate feature chrono only.
impl From<DateTime> for WritableTagValue<'_>
Available on non-crate feature
chrono only.impl Copy for DateTime
impl StructuralPartialEq for DateTime
Auto Trait Implementations§
impl Freeze for DateTime
impl RefUnwindSafe for DateTime
impl Send for DateTime
impl Sync for DateTime
impl Unpin for DateTime
impl UnsafeUnpin for DateTime
impl UnwindSafe for DateTime
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