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§
sourcefn half_month_bucket(&self) -> i32
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.