The Periods package provide a compact representation of time periods used in statistics. A Period is represented by the frequency and an ordinal starting in 1970-01-01.
Using an ordinal integer simplifies period arithmetic. Main functionalities contains parsing of strings into Periods and formatting of Periods in user controlled representations.
No support is provided for infra day time periods.
## Frequencies
The following frequencies are supported: year, semester, quarter, month, week, day, undated
Period(2010, 3, :Month):(Period(2011,12, :Month) must be equivalent to a vector of Periods. Frequency must be the same at both ends.
## Parsing and formatting
- parsing and formating of period strings is implemented as an extension of the mechanism used for dates in Julia Standard Library. Some default formats will be provided. Be careful about ambiguous representations.