pub struct EasyTime<F: TimeZone> {
pub value: i64,
pub time_now: DateTime<F>,
}Fields§
§value: i64§time_now: DateTime<F>Implementations§
source§impl<F: TimeZone> EasyTime<F>
impl<F: TimeZone> EasyTime<F>
pub fn new(value: i64) -> EasyTime<Local>
pub fn new_with_utc(value: i64) -> EasyTime<Utc>
pub fn new_with_time(value: i64, time: DateTime<F>) -> EasyTime<F>
pub fn seconds_from_now(&self) -> DateTime<F>
pub fn seconds_ago(&self) -> DateTime<F>
pub fn minutes_from_now(&self) -> DateTime<F>
pub fn minutes_ago(&self) -> DateTime<F>
pub fn hours_from_now(&self) -> DateTime<F>
pub fn hours_ago(&self) -> DateTime<F>
pub fn days_from_now(&self) -> DateTime<F>
pub fn days_ago(&self) -> DateTime<F>
pub fn months_from_now(&self) -> DateTime<F>
pub fn months_ago(&self) -> DateTime<F>
pub fn years_from_now(&self) -> DateTime<F>
pub fn years_ago(&self) -> DateTime<F>
pub fn decades_from_now(&self) -> DateTime<F>
pub fn decades_ago(&self) -> DateTime<F>
pub fn centuries_from_now(&self) -> DateTime<F>
pub fn centuries_ago(&self) -> DateTime<F>
pub fn milleniums_from_now(&self) -> DateTime<F>
pub fn milleniums_ago(&self) -> DateTime<F>
Auto Trait Implementations§
impl<F> RefUnwindSafe for EasyTime<F>where <F as TimeZone>::Offset: RefUnwindSafe,
impl<F> Send for EasyTime<F>where <F as TimeZone>::Offset: Send,
impl<F> Sync for EasyTime<F>where <F as TimeZone>::Offset: Sync,
impl<F> Unpin for EasyTime<F>where <F as TimeZone>::Offset: Unpin,
impl<F> UnwindSafe for EasyTime<F>where <F as TimeZone>::Offset: UnwindSafe,
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