From 1cc81f5cb0df2b66a795ff0c26d7bbc4d16e13c6 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 17 Jul 2013 05:24:50 -0400 Subject: the big time handling overhaul this commit has two major user-visible parts: zoneinfo-format time zones are now supported, and overflow handling is intended to be complete in the sense that all functions return a correct result if and only if the result fits in the destination type, and otherwise return an error. also, some noticable bugs in the way DST detection and normalization worked have been fixed, and performance may be better than before, but it has not been tested. --- src/time/time_impl.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/time/time_impl.h (limited to 'src/time/time_impl.h') diff --git a/src/time/time_impl.h b/src/time/time_impl.h new file mode 100644 index 00000000..2e9a2c09 --- /dev/null +++ b/src/time/time_impl.h @@ -0,0 +1,9 @@ +#include + +int __days_in_month(int, int); +int __month_to_secs(int, int); +long long __year_to_secs(long long, int *); +long long __tm_to_secs(const struct tm *); +int __secs_to_tm(long long, struct tm *); +void __secs_to_zone(long long, int, int *, long *, long *, const char **); +const unsigned char *__map_file(const char *, size_t *); -- cgit v1.2.1