ToruNiina
51dd3abcae
remove one branch by preprocessor
...
since localtime in windows is already thread-safe, there are no need to
change the function.
2018-12-26 13:38:01 +09:00
ToruNiina
825b2c30a1
add threadsafe localtime_(s|r)
2018-12-25 22:40:52 +09:00
ToruNiina
fd21d5dd95
add simplest copyright notice
2018-12-13 20:44:10 +09:00
ToruNiina
5125287ac7
fix datetime conversion
...
use internal duration type in std::chrono::system_clock::time_point
2018-12-13 14:57:42 +09:00
ToruNiina
26e0d87d3b
enable nanoseconds in datetimes
2018-12-13 12:49:53 +09:00
ToruNiina
03be08a2e6
fix conversion from offset_datetime to system_clock::time_point
2018-12-12 20:28:11 +09:00
ToruNiina
dc8ccdc458
construct much more tmp variables
...
std::chrono::seconds -= std::chrono::milliseconds cannot be done bc
it represents the duration as integer value and milliseconds are less
than seconds. it causes compilation error when we pass a duration to
toml::local_time. to avoid this, we need to type-cast the values to
smaller duration, like sec -> msec
2018-12-09 18:00:46 +09:00
ToruNiina
9fadf71a10
add constructor from duration to local_time
2018-12-09 16:27:47 +09:00
ToruNiina
b0e7efa1e0
make some constructors explicit
2018-12-09 13:38:57 +09:00
ToruNiina
a1aa780a60
Merge branch 'toml-v050' of github.com
2018-12-09 11:05:26 +09:00
ToruNiina
48f3b73b91
add ctor(local_datetime, time_offset) to offset_datetime
2018-12-09 00:11:07 +09:00
ToruNiina
bb215836dc
add missing header files
2018-12-08 20:39:37 +09:00
ToruNiina
3ef33c1637
change almost everything about datetime
2018-12-08 19:04:41 +09:00
ToruNiina
c706a54121
add namespace specifier
2017-05-09 22:07:28 +09:00
ToruNiina
a1218b266a
add restriction to datetime offset size
2017-05-07 13:50:53 +09:00
ToruNiina
bbb9388d3a
add typedefs to basic_datetiem
2017-05-06 18:43:55 +09:00
ToruNiina
833c69628a
fix datetime::ctor and stream operator for datetime
2017-04-21 15:54:48 +09:00
ToruNiina
337a671f0c
split datetime definition from toml.hpp
2017-04-21 12:56:39 +09:00