A date and time library based on the C++11/14/17 <chrono> header
OTHER License
Bot releases are visible (Hide)
Scoop up miscellaneous bug fixes over the past year.
Published by HowardHinnant over 4 years ago
This will likely be the final release of this library. From here you should migrate to C++20 as vendors begin to ship this library under namespace std::chrono.
The master branch will continue to be bug fixed as bugs arise. However a subsequent release may or may not happen.
The CMake support of this library is chaotic (to be kind). Personally I don't use it and instead follow the installation instructions found here: https://howardhinnant.github.io/date/tz.html#Installation (needed only for tz.h).
Published by HowardHinnant over 6 years ago
January
Sunday
Published by HowardHinnant almost 7 years ago
clock_cast
for converting between time_points of different clocks.zoned_time<Duration1, TimeZonePtr1>
and zoned_time<Duration2, TimeZonePtr2>
.Published by HowardHinnant almost 7 years ago
Published by HowardHinnant over 7 years ago
format
and parse
:
make_zoned
and make_time
in C++17.Published by HowardHinnant almost 8 years ago
Published by HowardHinnant about 8 years ago
This is an API-breaking release relative to v1.0.0. The biggest difference is that day_point
has been renamed to sys_days
. This change was not done lightly, but I feel it was necessary to evolve the time zone library in the best direction. Indeed, the creation of the time zone library was itself a real-world test of the date library, and this change is a result of that test.
The time zone library has seen significant changes with the introduction of local_time
, local_days
, and zoned_time
. zoned_time
, created with the helper functions make_zoned
is now the most convenient high-level API to access time zone computations.
Formatting and parsing utilities have been added to the time zone library. And "leap-second aware" clocks have also been added: utc_clock
, tai_clock
and gps_clock
. This clocks have time_points that when subtracted across leap second insertions take those inserted leap seconds into account.
Also new with this version of the time zone library is the ability to have the IANA time zone database automatically updated to the latest version on the first use by your application. This is the default setting for linux and macOS, and requires just a little extra installation effort on Windows.
The header chrono_io.h
provides streaming for the chrono::duration
types. This gets rid of the need to use .count()
and specify units manually when streaming durations.
New calendars introduced:
Bug fixes include:
Published by HowardHinnant over 8 years ago