charts.ticks
Axis ticks: a round step (1, 2 or 5 x 10^k), the ticks on it, and calendar ticks from days to years.
A group of 4: tick_step, nice_ticks, time_tick_interval, time_ticks
1.0.0
py rs ts
57 tests
dates.add-days
Shift an ISO date by a whole number of days, forwards or backwards, with exact calendar arithmetic.
add_days in Python
1.0.0
py rs ts
28 tests
dates.add-months
Add calendar months to an ISO date, clamping to the month end: 31 Jan + 1 month is 28 or 29 Feb.
add_months in Python
1.0.0
py rs ts
22 tests
dates.bank-holidays
UK bank and public holidays for a region and year, as published by gov.uk, including one-off holidays.
bank_holidays in Python
1.0.1
py rs ts
15 tests
dates.day-of-week
The ISO 8601 day of the week for a date: 1 is Monday through 7 is Sunday.
day_of_week in Python
1.0.0
py rs ts
20 tests
dates.is-leap-year
Whether a year is a Gregorian leap year: every 4th, except centuries, except every 400th.
is_leap_year in Python
1.0.0
py rs ts
15 tests
dates.business-days-between
Working days between two dates, excluding weekends and a caller-supplied holiday list.
business_days_between in Python
1.0.0
py rs ts
26 tests
dates.days-between
Calendar days from one ISO date to another, signed: negative when the second date is earlier.
days_between in Python
1.0.0
py rs ts
15 tests
dates.month-boundaries
The first day, last day and length of the calendar month containing a date.
month_boundaries in Python
1.0.0
py rs ts
19 tests