Quantum.Tempo 1.0.2

dotnet add package Quantum.Tempo --version 1.0.2
                    
NuGet\Install-Package Quantum.Tempo -Version 1.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Quantum.Tempo" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Quantum.Tempo" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Quantum.Tempo" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Quantum.Tempo --version 1.0.2
                    
#r "nuget: Quantum.Tempo, 1.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Quantum.Tempo@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Quantum.Tempo&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Quantum.Tempo&version=1.0.2
                    
Install as a Cake Tool

Quantum.Tempo

Quantum.Tempo is a .NET date/time framework focused on simple, string-based, calendar-agnostic manipulation of dates, times, intervals, and durations. It supports multiple calendar systems (Gregorian, Persian/Shamsi, Hijri/Arabic, and custom) and is designed for robust, human-friendly, and ISO-compliant operations.

Features

  • String-based API: All operations use and return strings
  • Calendar-agnostic: Supports Gregorian, Persian, Hijri, and pluggable calendars
  • Navigation, sequencing, and interval algebra
  • Duration parsing, formatting, and arithmetic
  • Time zone and offset support
  • Business day/holiday logic
  • Fuzzy/relative date parsing
  • Localization (English, Farsi, Arabic)
  • Recurrence rules (RRULE)
  • Pluggable calendar system (ICalendarProvider)
  • CLI playground for interactive use
  • Comprehensive tests and documentation

Usage Examples

// Parse and normalize
"1402/02/01".AutoNormalizeToIsoDateString(); // "2023-04-21"
// Next date, week, month
"2024-05-01".NextDate();
"2024-05-01".NextWeek();
// Duration arithmetic
"2024-05-01".AddDuration("P3D");
// Interval algebra
Interval.Union("2024-01-01/2024-01-10", "2024-01-05/2024-01-15");
// Recurrence
StringExtensions.ParseRRule("FREQ=WEEKLY;BYDAY=MO,WE,FR;COUNT=4", "2024-05-01");
// Pluggable calendar
CalendarProviderRegistry.Register(new SampleFiscalCalendarProvider());

// CLI playground
// dotnet run --project src/Tempo.Cli -- parse "1402/02/01"

API Comments & Discoverability

  • All public APIs are documented with XML comments for IntelliSense
  • See docs/USAGE.md for detailed usage and extension

Roadmap & Contribution

  • Advanced recurrence, more calendar providers, web playground, and more
  • Contributions welcome! See CONTRIBUTING.md and open issues/PRs

Tests

  • Run dotnet test to verify all features

Interactive REPL Playground

Explore all Quantum.Tempo features interactively using the REPL playground:

dotnet run --project src/Tempo.Repl

Type help in the REPL for available commands. See docs/FEATURES.md for details and HOWTO-REPL.md for a full how-to guide.

License

MIT

Product 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 was computed.  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 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 216 8/5/2025
1.0.1 208 8/5/2025
1.0.0 204 8/5/2025