dates.add-business-days
Move a date forward or back by working days, skipping weekends and a caller-supplied holiday list.
add_business_days in Rust
1.0.0
py rs ts
19 tests
dates.add-days
Shift an ISO date by a whole number of days, forwards or backwards, with exact calendar arithmetic.
add_days in Rust
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 Rust
1.0.0
py rs ts
22 tests
dates.age
Age in whole years on a given date, with 29 February birthdays ageing on 1 March in other years.
age in Rust
1.0.0
py rs ts
18 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 Rust
1.0.1
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 Rust
1.0.0
py rs ts
26 tests
dates.day-count-fraction
Year fraction between two dates by ACT/365F, ACT/360, 30/360, 30E/360 or ACT/ACT ISDA, as an exact fraction.
day_count_fraction in Rust
1.0.0
py rs ts
21 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 Rust
1.0.0
py rs ts
20 tests
dates.days-between
Calendar days from one ISO date to another, signed: negative when the second date is earlier.
days_between in Rust
1.0.0
py rs ts
15 tests
dates.is-leap-year
Whether a year is a Gregorian leap year: every 4th, except centuries, except every 400th.
is_leap_year in Rust
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 Rust
1.0.0
py rs ts
19 tests
dates.overlap
Days two date ranges have in common, with the end of each range stated as inclusive or exclusive.
overlap_days in Rust
1.0.0
py rs ts
15 tests
dates.quarter
Calendar quarter and fiscal quarter of a date, with the fiscal year and quarter date ranges, for any start month.
quarter in Rust
1.0.0
py rs ts
17 tests
dates.recurrence
The next n dates of a repeating rule: monthly on a day, last weekday of the month, every k days or weeks, yearly.
recurrence in Rust
1.0.0
py rs ts
25 tests
dates.uk-tax-year
The UK personal tax year containing a date: 6 April to 5 April, with HMRC's label.
uk_tax_year in Rust
1.0.0
py rs ts
19 tests
dates.week-number
ISO 8601 week number and week-numbering year of a date: weeks start Monday, week 1 holds the first Thursday.
week_number in Rust
1.0.0
py rs ts
18 tests