Trait temporenc::Date
[−]
[src]
pub trait Date { fn year(&self) -> Option<u16>; fn month(&self) -> Option<u8>; fn day(&self) -> Option<u8>; }
Required Methods
fn year(&self) -> Option<u16>
If present, the year. In range [0, 4094].
fn month(&self) -> Option<u8>
If present, the month. In range [1, 12].
fn day(&self) -> Option<u8>
If present, the day. In range [1, 31].
Implementors
impl Date for DateOnly
impl Date for DateTime
impl Date for DateTimeOffset
impl Date for DateTimeSubSecond
impl Date for DateTimeSubSecondOffset