Martchus
7b01938ece
Add {TimeSpan,DateTime}::ticks() for easier read/write
2018-06-23 14:32:46 +02:00
Martchus
2862c81a23
Fix ISO date string parsing/formatting
2018-01-29 16:24:39 +01:00
Martchus
400e73005a
Fix use of std::time
2018-01-28 18:03:58 +01:00
Martchus
db006408b7
Export DateTime operator+(DateTime begin, Period period)
2017-12-03 14:56:34 +01:00
Martchus
46e9d4b1e4
Add formatting for Period class
2017-12-03 14:55:49 +01:00
Martchus
26cd303422
Improve period compution
2017-12-03 01:45:54 +01:00
Martchus
a89f6f9ce4
Improve documentation of chrono library
2017-12-03 01:45:11 +01:00
Martchus
85f29adb8a
Use full precision for total seconds in TimeSpan::toString
2017-11-29 23:11:26 +01:00
Martchus
d7185fc1bc
Improve documentation
2017-11-29 19:11:01 +01:00
Martchus
1ab9349eaa
Improve const correctness
2017-11-29 19:08:22 +01:00
Martchus
3051675bbe
Allow conversion of TimeSpan to string with total seconds
2017-11-27 10:25:41 +01:00
Martchus
49d626702c
Fix implicit sign conversion
2017-09-22 00:23:02 +02:00
Martchus
e52fd5a4af
Apply tidy after updating to clang-format 5.0.0
...
The behavior of clang-format slightly changed in Clang 5.0.0:
http://releases.llvm.org/5.0.0/tools/clang/docs/ReleaseNotes.html#clang-format
2017-09-17 21:45:23 +02:00
Martchus
357ede4ee7
chrono utils: Improve handling micro- and nanoseconds
...
DateTime and TimeSpan have an accuracy of 100 nanoseconds.
This commit ensures this is also handled in toString() and
fromString() methods and adds relevant convenience methods.
2017-08-31 02:17:05 +02:00
Martchus
b69d4a8b65
Disable DateTime::exactGmtNow() under MacOS
...
`clock_gettime(CLOCK_REALTIME, &t);` does not seem to
be available under MacOS
2017-07-29 00:32:19 +02:00
Martchus
3bc9a7b07a
Fix handling negative time spans
2017-06-25 16:00:11 +02:00
Martchus
be4901ce2c
Add missing #include <function>
...
This fixes compilation using libc++ instead
of libstdc++
2017-05-31 00:35:39 +02:00
Martchus
59e20b1043
Apply clang-format
2017-05-01 03:13:11 +02:00
Martchus
c728f0ffe0
Add hash functions for chrono objects
2017-05-01 02:54:06 +02:00
Martchus
5679460302
Simplify DateTime::fromTimeStampGmt()
2017-04-19 21:50:21 +02:00
Martchus
452954dc1f
Add DateTime::exactGmtNow()
...
* Provides more precise wall-clock time
* Only available under UNIX so far
2017-04-19 21:48:23 +02:00
Martchus
c4d73b0d7d
Use C++14 string literal
2017-02-06 18:32:27 +01:00
Martchus
33d368397f
Make use of newly introduced string builder
2017-01-27 18:51:54 +01:00
Martchus
31be0c24ea
Add DateTime::fromIsoString{Gmt,Local}
2016-09-01 15:42:25 +02:00
Martchus
12588c6928
Improve chrono utils
...
- Support parsing/generating ISO time stamp with
time zone delta
- Fix minor bugs
- Improve tests
2016-08-30 19:59:04 +02:00
Martchus
d6b08b8ed9
Fix decoration for static builds
...
- Also add improvemnts a few other things in the build system
2016-08-29 15:35:48 +02:00
Martchus
db7b02b1db
Make header guards more unique and consistent
2016-06-11 19:09:14 +02:00
Martchus
76e422a7ce
Make DateTime::now() and DateTime::gmtNow() inline
2016-05-23 00:04:06 +02:00
Martchus
2e6a8dc6a8
added DateTime::gmtNow()
2016-02-15 20:29:52 +01:00
Martchus
df9c0573bf
preserve ABI
2016-01-29 01:13:11 +01:00
Martchus
3c9f95059e
added DateTime::fromTimeStampGmt()
2016-01-27 00:14:20 +01:00
Martchus
a8f7644350
minor adjustments
2016-01-18 23:41:30 +01:00
Martchus
9f4d1daacf
fixed DateTime::now()
2015-09-22 22:52:43 +02:00
Martchus
f3ee822cc6
make constructor explicit
2015-09-11 22:01:26 +02:00
Martchus
4d6bf67188
fixed includes
2015-09-06 20:19:09 +02:00
Martchus
603dbf823a
fixed includes
2015-09-06 15:30:16 +02:00
Martchus
8c09772802
added new method to construct DateTime instance from timestamp
2015-06-21 21:41:56 +02:00
Martchus
6cd3315910
small adjustments
2015-05-17 17:18:07 +02:00
Martchus
24ba96a17f
First commit
2015-04-22 18:36:40 +02:00