Structures

Chrononuensis provides a set of predefined structures for parsing and representing date-based information. Each structure has:

  • A default format used for parsing.
  • A list of components extracted from the input.

List of all supported structures (and parsers)

MonthDay

Default Format: MM-dd

Component Type Min Max
Month int 1 12
Day int 1 N/A

YearDay

Default Format: yyyy-jjj

Component Type Min Max
Year int N/A N/A
DayOfYear int 1 N/A

YearWeek

Default Format: yyyy-'W'ww

Component Type Min Max
Year int N/A N/A
Week int 1 N/A

YearMonth

Default Format: yyyy-MM

Component Type Min Max
Year int N/A N/A
Month int 1 12

YearQuarter

Default Format: yyyy-'Q'q

Component Type Min Max
Year int N/A N/A
Quarter int 1 4

YearSemester

Default Format: yyyy-'H'S

Component Type Min Max
Year int N/A N/A
Semester int 1 2

Year

Default Format: yyyy

Component Type Min Max
Year int N/A N/A

Decade

Default Format: tttt's'

Component Type Min Max
Decade int N/A N/A

Century

Default Format: c

Component Type Min Max
Century int N/A N/A

Quick Start Guide
Format Specifiers