This is the changelog for Tempo v0.1.0 released on _____ 2023. For older changelogs please consult the release tag on GitHub
-
Add support for steps in set ranges. This is not ISO8601 compliant but is a natural expectation for Elixir. For example
~o"2023Y{1..-1//2}W"
says "every second week in 2023". -
Add
Tempo.round/2
to round a Tempo struct to a given resolution. -
Add
Tempo.to_date/1
,Tempo.to_time/1
andTempo.to_naive_date_time/1
-
Add
Tempo.to_calendar/1
that will convert aTempo.t
struct to the most appropriate native Elixir date, time or naive date time struct.
-
Fix implicit enumeration of standalone months like
~o"3M"
. The requires an updatedex_cldr_calendars
library that supports returning the number of days in the month without a year (returning an error if the result is ambiguous without a year). -
Many miscellaneous bug fixes.