range/time_period library

Classes

CalendarYear
The period of 365 days (or 366 days in leap years) starting from the first of January; used for reckoning time in ordinary affairs.
FiscalYear
Constructs a FiscalYear time period.
TimePeriod
Represents a specific time span.

Functions

yr4(int year) int
Returns a four digit year from year which may be only 2 digits, assuming that anything 70 or more means 19xx and under 70 means 20xx.