Skip to content

Releases: derickr/timelib

timelib 2018.01

15 Jan 10:25
Compare
Choose a tag to compare
  • Updates embedded data to IANA tzdata 2018.9
  • 64-bit transitions are now used in determining UTC offsets
  • Support for user-defined format specifiers in timelib date parsing (Nick Zolnierz, MongoDB)
  • Account for v representing milliseconds introduced by RFC3339_EXTENDED (Mariano Iglesias)
  • Removed use of setlocale, which made the code not thread safe
  • Fixed off by one error in do_range_limit_fraction()
  • Fixed incorrect snprintf invocation with static buffer
  • Fixed normalisation of fractions
  • Fixed timelib_diff(), which did not swap direction when sses are the same, but fractions were not
  • Fixed C4477 warnings in timelib_dump_tzinfo() when compiling with MSVC (Henrik Eden, MongoDB)

Timelib 2018.01alpha2

11 May 15:34
Compare
Choose a tag to compare
Timelib 2018.01alpha2 Pre-release
Pre-release

Updates the data package to 2018e, and includes a fix for issue #37: Incorrect snprintf invocation with static buffer

Timelib 2017.07

11 May 15:35
Compare
Choose a tag to compare

Updates the data package to 2018e, and includes a fix for issue #37: Incorrect snprintf invocation with static buffer

Timelib 2017.05

10 Nov 11:59
Compare
Choose a tag to compare

This release of timelib is the cumulation of the last half year, as part of a MongoDB Inc. project to get time zone support added to the Aggregation/Framework.

The following items are noteworthy improvements:

  • Added support for reading tzdata files from the file system (/usr/share/zoneinfo)
  • Performance improvements in rendering very early or late timestamps in year/month/day format
  • Support for TZif3 files
  • New functions:
    • timelib_isodate_from_date — to convert from year, month, day to ISO year, week and dayOfWeek
    • timelib_date_from_isodate — to convert from ISO year, week, and dayOfWeek to year, month and day
    • timelib_hms_to_decimal_hour — to convert from hour, minute, seconds to fractional hours
    • timelib_ts_to_julianday — Converts the Unix Epoch time stamp 'ts' to a Julian Day
  • Better Endianness support, and added support for more exotic platforms (s390)
  • Fractions are now stored as integers instead of floats (API change)
  • Added error codes to parser errors and warnings
  • Change calculations in timelib to use seconds East instead of minutes West (API change, MongoDB issue SERVER-30259)
  • Added function documentation to the timelib.h header file
  • Updated built-in Olson version of timezonemap.h and timezonedb.h to 2017.03.
  • Issue #17: Formatting date/time from timestamps goes wrong sometimes
  • Issue #19: Inefficient algorithm for calculating dates far in the past.

2017.02: Added functionality for reading system tzfiles

27 Apr 10:20
Compare
Choose a tag to compare

2015.02: House keeping and memory management

22 Sep 07:55
Compare
Choose a tag to compare

This release addresses the following issues:

  • some times before the initial transition where not calculated properly
  • timezone file wasn't sorted properly, which meant that some zones could not be found
  • a patch that allows external memory managers to be used

First public release

20 Jul 17:06
Compare
Choose a tag to compare

This is the first public release of timelib - the library powering PHP's Date/Time support.