Chrononuensis 0.32.1
dotnet add package Chrononuensis --version 0.32.1
NuGet\Install-Package Chrononuensis -Version 0.32.1
<PackageReference Include="Chrononuensis" Version="0.32.1" />
<PackageVersion Include="Chrononuensis" Version="0.32.1" />
<PackageReference Include="Chrononuensis" />
paket add Chrononuensis --version 0.32.1
#r "nuget: Chrononuensis, 0.32.1"
#:package Chrononuensis@0.32.1
#addin nuget:?package=Chrononuensis&version=0.32.1
#tool nuget:?package=Chrononuensis&version=0.32.1
Chrononuensis
![]()
Chrononuensis is a library for parsing complex time periods like year-month, year-quarter, month-week, and year-week. Effortlessly decode and validate non-standard formats, handle fiscal calendars, ordinal days, and custom cycles. Lightweight, flexible, and precise, it structures time data with ease.
About | Installing | Quickstart
About
Continuous integration builds:
Installing
Using .NET CLI
Creating a new reference using .NET CLI If you’re using the .NET command-line interface (CLI), open a terminal in your project’s root directory and run:
dotnet add package Chrononuensis
This will:
- Add the Chrononuensis package to your project.
- Update the csproj file to include it as a dependency.
Quick-start
Use the structures
Structs in Chrononuensis are lightweight data structures designed to hold parsed data. They are optimized for performance and memory efficiency. They are immutable where possible, ensuring data integrity.
Manually create a struct by passing values
You can create a struct directly by passing its required values to the constructor.
Chrononuensis follows a consistent parameter ordering for struct constructors and parsers. This order follows a decreasing specificity pattern, similar to how DateTime works in .NET. i.e. for the YearMonth struct, Year comes before Month, following a logical decreasing order.
// Create a Year-Month period for July 2025
var yearMonth = new YearMonth(2025, 7);
Parsing from a string
The static YearMonth.Parse method reads the year and month from a formatted string and constructs a YearMonth.
YearMonth other = YearMonth.Parse("2025-08", "yyyy-MM");
In this example,
2025-08is the input string.yyyy-MMis the format that defines how the input should be interpreted.
Low-level parsers
For most uses, call Parse on the struct you want, such as YearMonth.Parse. Parser classes are low-level APIs intended mainly for extensibility and for cases where you need the individual components, such as constructing your own type.
YearMonthParser.Parse returns an (int Year, int Month) tuple.
using Chrononuensis.Parsers;
var parser = new YearMonthParser();
(int year, int month) = parser.Parse("2025-08", "yyyy-MM", provider: null);
List of supported structures and parsers
Chrononuensis provides generated structures and matching parsers for the following date-based information:
| Structure and parser | Implements IPeriod |
|---|---|
Century / CenturyParser |
Yes |
Decade / DecadeParser |
Yes |
Olympiad / OlympiadParser |
Yes |
Year / YearParser |
Yes |
YearSemester / YearSemesterParser |
Yes |
YearQuarter / YearQuarterParser |
Yes |
YearMonth / YearMonthParser |
Yes |
YearWeek / YearWeekParser |
Yes |
YearDay / YearDayParser |
Yes |
MonthDay / MonthDayParser |
No; without a year it does not identify a continuous time span |
CustomPeriod is a hand-written IPeriod implementation for an arbitrary inclusive date range. It does not have a matching parser.
Structure and parser details · Period details
List of supported format specifiers
- Century:
c,cc,{c:RN},{cc:RN} - Decade:
tt,tttt - Olympiad:
o,{o:RN} - Year:
yy,yyyy,{yy:RN},{yyyy:RN} - Semester:
S - Quarter:
q - Month:
M,MM,MMM,MMMM,{M:RN},{MM:RN} - Week:
w,ww - Day of year:
j,jjj - Day:
d,dd,{d:RN},{dd:RN}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Chrononuensis:
| Package | Downloads |
|---|---|
|
PocketCsvReader.Chrononuensis
Opt-in span-based Chrononuensis temporal parsers for PocketCsvReader. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.32.1 | 59 | 11/25/2026 |
| 0.31.0 | 121 | 11/25/2026 |
| 0.30.0 | 49 | 11/25/2026 |
| 0.29.9 | 61 | 11/24/2026 |
| 0.28.0 | 5,385 | 10/5/2026 |
| 0.27.0 | 136 | 10/5/2026 |
| 0.26.6 | 56 | 11/24/2026 |
| 0.26.3 | 131 | 10/5/2026 |
| 0.26.1 | 112 | 10/28/2026 |
| 0.26.0 | 131 | 10/5/2026 |
| 0.25.27 | 112 | 10/21/2026 |
| 0.25.25 | 103 | 10/17/2026 |
| 0.25.22 | 119 | 10/7/2026 |
| 0.25.21 | 125 | 10/6/2026 |
| 0.25.19 | 116 | 10/6/2026 |
| 0.25.18 | 125 | 10/6/2026 |
| 0.25.16 | 150 | 10/4/2026 |
| 0.24.39 | 134 | 10/4/2026 |
| 0.24.36 | 381 | 9/16/2026 |
| 0.24.35 | 273 | 8/22/2026 |