A complete date/time library for Elixir projects.
Date.from_iso_triplet
, Date.iso_triplet
, and Date.from_iso_day
that was producing incorrect results.use Timex
.{ISO}
to handle all valid ISO-8601 combined date/time string formats{ISOz}
to handle all valid ISO-8601 combined date/time strings which contain no offset (are suffixed with 'Z').lau/tzdata
package as dependency for loading Olson timezone informationTimezone
module to use Tzdata
for loading the tz databaseTimezoneInfo
struct to reflect that the information is for a single period, rather than all periodsTimezone.Dst
module, as it is no longer neededThis is a significant update! Please post issues as you encounter them and I will address ASAP. This release will likely be the last prior to a 1.0-RC.
PLEASE READ
I've made some changes around timezone conversion to make the API more explicit, and open up some options previously unavailable for working with DateTime objects. Make note of the changes below and how they may affect you, if at all.
Date.set(date, timezone: tz)
no longer does implicit timezone conversion. You must use Timezone.convert if you want to shift a date to another timezone.Date.compare(a, b, :days)
will return 0, or equal.Please let me know if you run into any issues with this release. Thanks!
Timex.Parsers.DateFormat.Parser
behaviour, and Timex.DateFormat.Formatters.Formatter
behaviour. Potentially Breaking Change: I've kept the same DateFormat.*
API, but because the parsers/formatters were rewritten, there may be bugs. The current test suite is passing, so if you encounter bugs, please document the exact parameters so I can fix it and make sure we have test coverage.Timezone.get(0)
now returns UTC
not GMT
.