pub struct DateRangeTool;Implementations§
Source§impl DateRangeTool
impl DateRangeTool
pub fn new() -> Self
pub fn today(&self) -> DateRange
pub fn yesterday(&self) -> DateRange
pub fn tomorrow(&self) -> DateRange
pub fn offset_day(&self, n: i64) -> DateRange
pub fn last_n_days(&self, n: i64) -> Option<DateRange>
pub fn next_n_days(&self, n: i64) -> Option<DateRange>
pub fn this_hour(&self) -> DateRange
pub fn last_hour(&self) -> DateRange
pub fn next_hour(&self) -> DateRange
pub fn offset_hour(&self, n: i64) -> DateRange
pub fn last_n_hours(&self, n: i64) -> Option<DateRange>
pub fn next_n_hours(&self, n: i64) -> Option<DateRange>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DateRangeTool
impl RefUnwindSafe for DateRangeTool
impl Send for DateRangeTool
impl Sync for DateRangeTool
impl Unpin for DateRangeTool
impl UnsafeUnpin for DateRangeTool
impl UnwindSafe for DateRangeTool
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