Trait backend::service::util::HalfMonthBucket

source ·
pub trait HalfMonthBucket {
    // Required method
    fn half_month_bucket(&self) -> i32;
}
Expand description

Trait for getting the half month bucket of a NaiveDate.

Required Methods§

source

fn half_month_bucket(&self) -> i32

Returns the half month bucket of the date. This is a number between 0 and 23. 0 is the first half of January, 1 is the second half of January, 2 is the first half of February, etc.

Implementors§

source§

impl<T> HalfMonthBucket for T
where T: Datelike,