24 Commits

Author SHA1 Message Date
Ivan Pizhenko
0e64070a33 Correction after code review 2015-12-02 16:22:09 +02:00
ivanp2015
50802176f3 TZ stuff fixed for VS2013 2015-11-29 07:56:59 +02:00
Ivan Pizhenko
bf699e573b Fixed GCC 4.8 compilation issue 2015-11-08 00:54:02 +02:00
Howard Hinnant
819d2c3575 Minor cleanup and crank up warnings. 2015-10-27 12:14:30 -04:00
gm
2467d56f11 Address issue 19: define NOMINMAX and WIN32_LEAN_AND_MEAN. In addition, fix some warnings so MSVC will compile at /W4 with no warnings.
No functional change intended.
2015-10-22 22:36:37 +13:00
Howard Hinnant
6b03ff2e70 Push tz configuration up higher in the source file. 2015-09-27 10:49:10 -04:00
gm
635ec55065 Throw a runtime error if the install folder does not exist.
Replace my accidental use of NULL with nullptr.
Improve some comments.
2015-09-27 20:55:55 +13:00
gm
0791828329 Fix a WIN32 -> _WIN32 typo and try to make some comments more readable. 2015-09-24 14:46:20 +12:00
Howard Hinnant
479cd16986 Add validate test for timezones 2015-08-15 16:00:42 -04:00
Ville Voutilainen
eb32682e99 Comment typos 2015-08-10 23:14:15 +03:00
Ville Voutilainen
13de3eb7f2 Add myself to tz.cpp copyright 2015-08-10 09:59:01 +03:00
Howard Hinnant
28eadffa06 Implement '%z' 2015-08-08 18:11:35 -04:00
Howard Hinnant
999dfc4b37 Change to MIT copyright
* Added unicode copyright to CLDR-derived mapping.
2015-08-08 17:03:43 -04:00
Howard Hinnant
33f923b508 Rename seconds_point to second_point for consistency with day_point. 2015-08-08 13:20:12 -04:00
Howard Hinnant
0d0841f5b8 Rename current_timezone() to current_zone():
* Better symmetry with locate_zone(name).
2015-08-08 13:06:04 -04:00
gm
c21e392c81 Initial Win32 support.
This library now compiles on Windows but requires VS2015 for Windows.
VS2013 may work but this has not been tested yet.
Requires NOMINMAX to be defined to avoid clashes with the Windows.h
headers and the C++ stl and this libraries Date max functions.
Also known to work equivalently with recent g++ and mingw combinations
but -std=C++14 flag should be set.
C++14 restrictions may be relaxed later. Patches welcome!
g++ 5.1 was tested. It may work with other version but that hasn't been tried.
Mac OS and Linux systems are known to compile with -std=c++11
current_timezone and locate_zone will return iana names not windows
time zone names. This is expected and as designed.
2015-08-06 23:16:03 -04:00
Ville Voutilainen
17bd48d23c An attempt to tidy up current_timezone() 2015-07-30 01:01:19 +03:00
Howard Hinnant
a2c632bb5b Silence a few warnings on VS. 2015-07-28 21:56:14 -04:00
gm
51864f56c1 Try to make current time zone work with Linux. e.g. Ubuntu and Fedora 2015-07-27 18:45:43 -04:00
Howard Hinnant
5c370dbfd9 Port to gcc-5.2.0 on OS X.
*  This also fixes an overflow bug in Zone::get_info.
2015-07-25 18:01:31 -04:00
Howard Hinnant
12a769653e Fix rule finding logic for falling off the front of the rule list 2015-07-18 23:11:20 -04:00
Howard Hinnant
9858887551 Correct some silly spelling errors. 2015-07-18 18:58:48 -04:00
Howard Hinnant
a431164fcd Add missing 'backward' file and correct output of negative values for time_of_day_storage. 2015-07-18 17:40:18 -04:00
Howard Hinnant
796448e4ad Initial commit 2015-07-17 22:30:53 -04:00