Expand description

A library containing a calendar respecting duration that is compatible with the time crate. Supports parsing and displaying to/from strings. Also supports addition and subtraction with OffsetDateTime.

Time string syntax

  • y for years
  • mon for months
  • w for weeks
  • d for days
  • h for hours
  • m for minutes
  • s for seconds

The string can be prefixed with - for negative durations.

Examples

  • 1y3mon4d
  • -3w4m5s

Structs