summaryrefslogtreecommitdiff
path: root/ext/date/lib/timelib.h
diff options
context:
space:
mode:
authorDerick Rethans <github@derickrethans.nl>2016-10-05 11:24:15 -0400
committerDerick Rethans <github@derickrethans.nl>2016-10-05 15:03:06 -0400
commit55626549d81d0feadb1d160be78fcf2b898a48cc (patch)
treea00c6239804f2ad68ccc3470e63e83eb18f7897f /ext/date/lib/timelib.h
parentd5b77d66626b138a83b6c0d16f746893fefa29ee (diff)
downloadphp-git-microseconds.tar.gz
Improve support for microseconds with Date/Timemicroseconds
It fixes several bugs: - Fixed bug #45554 (Inconsistent behavior of the u format char). - Fixed bug #48225 (DateTime parser doesn't set microseconds for "now"). - Fixed bug #52514 (microseconds are missing in DateTime class). - Fixed bug #52519 (microseconds in DateInterval are missing). - Fixed bug #68506 (General DateTime improvments needed for microseconds to become useful). - Fixed bug #73109 (timelib_meridian doesn't parse dots correctly). - Fixed bug #73247 (DateTime constructor does not initialise microseconds property). It also updates timelib to 2016.04, and updates a data mapping file, which causes changes to the volatile abbreviations tests.
Diffstat (limited to 'ext/date/lib/timelib.h')
-rw-r--r--ext/date/lib/timelib.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/date/lib/timelib.h b/ext/date/lib/timelib.h
index 9a59d89770..5cd1fe6ebc 100644
--- a/ext/date/lib/timelib.h
+++ b/ext/date/lib/timelib.h
@@ -38,8 +38,8 @@
# define timelib_free free
#endif
-#define TIMELIB_VERSION 201602
-#define TIMELIB_ASCII_VERSION "2016.02"
+#define TIMELIB_VERSION 201604
+#define TIMELIB_ASCII_VERSION "2016.04"
#define TIMELIB_NONE 0x00
#define TIMELIB_OVERRIDE_TIME 0x01
@@ -139,6 +139,7 @@ void timelib_time_set_option(timelib_time* tm, int option, void* option_value);
void timelib_time_dtor(timelib_time* t);
timelib_time* timelib_time_clone(timelib_time* orig);
int timelib_time_compare(timelib_time *t1, timelib_time *t2);
+void timelib_set_fraction_from_timeval(timelib_time *t, struct timeval tp);
timelib_time_offset* timelib_time_offset_ctor(void);
void timelib_time_offset_dtor(timelib_time_offset* t);