pub struct SafeDateTime;Expand description
Safe datetime operations.
Implementations§
Source§impl SafeDateTime
impl SafeDateTime
Sourcepub fn is_leap_year(year: i32) -> bool
pub fn is_leap_year(year: i32) -> bool
Check if a year is a leap year.
Sourcepub fn parse_iso_date(s: &str) -> Result<Date>
pub fn parse_iso_date(s: &str) -> Result<Date>
Parse ISO 8601 date (YYYY-MM-DD).
Sourcepub fn parse_iso_time(s: &str) -> Result<Time>
pub fn parse_iso_time(s: &str) -> Result<Time>
Parse ISO 8601 time (HH:MM:SS).
Auto Trait Implementations§
impl Freeze for SafeDateTime
impl RefUnwindSafe for SafeDateTime
impl Send for SafeDateTime
impl Sync for SafeDateTime
impl Unpin for SafeDateTime
impl UnwindSafe for SafeDateTime
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