- Remove the
?else
macro.
- Update the error message when qdate is not started with some better instructions.
- Some minor updates for hex.pm
- Removed the
erlnow()
warning - Fix some typos in the documentation
- Update the makefile to use rebar3.mk
- Skipped 0.7.1 only because there was a partially tagged 0.7.1 for a while, but was never published to hex. Just to ensure upgrades are easier, I just skipped a proper 0.7.1 release
- Re-introduce the qdate server for storing qdate timezones, formats, and parsers,
rather than overloading the
application
env vars (since theapplication
module only wants keys to be atoms). - Convert to using
qdate_localtime
1.2.0 (which passes dialyzer checks) qdate
is passing dialyzer again
- Add
age
andage_days
functions - Add option to preserve millisecond accuracy in date parsing and formatting (@Leonardb)
- Add
range_X
functions for getting a list of dates/times within a range (such asrange_day/3
to get a range of days between a start and end date. - Add
beginning_X
functions to return the beginning of the provided precision (minute, hour, day, week, month, or year)
- Add
end_X
functions to return the last second of each time period (this is just the opposite ofbeginning_X
)
- Add
between/[2,3,5]
functions for computing whether a date/time is between two others. - Update to rebar3 and add hex compatibility. (@Licenser)
- Properly add dependent apps to .app.src (@Licenser)
- Add an optional "relative date/time parser".
- Fix: Ensure
get_timezone()
returns the default timezone (from config) if it hasn't been set byget_timezone()
- Fix UTC/GMT bug (@loudferret)
- Fix Erlang 21 Stacktrace changes (@tnt-dev)
- Set a better rebar2 version of erlware commons (@tnt-dev)
- Add partial support for
ec_date
's 4-tuple subsecond accuracy time format. - Fix
erlware_commons
dependency to a rebar2-compatible version.
- Remove unnecessary
io:format
call.
- Remove dependency on a running server for tracking application state.
Instead, parsers and formats are registered to the application environment
vars (e.g.
application:get_env
), and timezones are registered to the application environment or the process dictionary. A side-effect of this change is that you can no longer query another process's timezone. - Add basic date arithmetic (e.g.
qdate:add_hours/[1-2]
, etc). - Add
get_formats()
andget_parsers()
to see list of registered formats and parsers. - Fix bug related to relying on the application environment variable
default_timezone
- Add Timezone/Daylight Saving Disambiguation
- Add the
auto
timezone shortcut - Fix rebar.config to allow for compilation on Erlang 17
- Fix allowing timezone names to be binary
- Adding
qdate:compare/2,3
for easily comparing dates
- Initial Release