Module chronoutil::delta [−][src]
Contains utility functions for shifting Date objects.
Functions
is_leap_year | Returns true if the year is a leap-year, as naively defined in the Gregorian calendar. |
shift_months | Shift a date by the given number of months. Ambiguous month-ends are shifted backwards as necessary. |
shift_years | Shift a date by the given number of years. Ambiguous month-ends are shifted backwards as necessary. |
with_day | Shift the date to have the given day. Returns None if the day is not in the range 1-31. |
with_month | Shift the date to have the given month. Returns None if the month is out of range. |
with_year | Shift the date to have the given year. |