pub struct Calendar { /* private fields */ }Implementations§
Source§impl Calendar
impl Calendar
pub fn from_time<Tz: TimeZone>(time: &DateTime<Utc>, zone: &Tz) -> Calendar
pub fn num_months_to(&self, calendar: &Calendar) -> Option<i64>
pub fn num_years_to(&self, calendar: &Calendar) -> Option<i64>
pub fn subtract_month<Tz: TimeZone>( &mut self, count: i64, zone: &Tz, ) -> DateTime<Utc>
pub fn subtract_year<Tz: TimeZone>( &mut self, count: i64, zone: &Tz, ) -> DateTime<Utc>
Auto Trait Implementations§
impl Freeze for Calendar
impl RefUnwindSafe for Calendar
impl Send for Calendar
impl Sync for Calendar
impl Unpin for Calendar
impl UnwindSafe for Calendar
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