Martchus
085ec2feca
Improve DateTime
...
* Improve documentation about time zone handling
* Add DateTime::toTimeStamp()
* Add experimental DateTime::fromChronoTimePoint()
and DateTime::fromChronoTimePointGmt()
2019-11-17 22:30:51 +01:00
Martchus
b693c72eb1
Fix old namespaces being mentioned in the documentation
2019-09-04 18:45:28 +02:00
Martchus
b48b2f5c06
Have everything in one top-level namespace
2019-06-10 21:56:46 +02:00
Martchus
98edb5a67c
Allow omitting second fraction in DateTime::fromIsoString
2018-11-01 20:20:32 +01:00
Martchus
9ed143e7d5
Improve chrono tests
2018-01-29 16:24:17 +01:00
Martchus
26cd303422
Improve period compution
2017-12-03 01:45:54 +01:00
Martchus
602993aa05
Add tests for TimeSpanOutputFormat::TotalSeconds
2017-12-02 22:26:26 +01: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
144175bb3a
Document necessity to run chrono test with different timezones
2017-07-16 18:34:42 +02:00
Martchus
f2189a15ce
Make check for DateTime::fromTimeStamp timezone-independent
2017-07-16 18:20:41 +02:00
Martchus
a53601e5d0
Improve chrono tests
2017-06-25 16:00:11 +02:00
Martchus
5388337bcc
Fix compiling tests under 32-bit arch
2017-05-30 23:56:08 +02:00
Martchus
db46948f2f
Apply clang-format
2017-05-04 22:44:15 +02:00
Martchus
c728f0ffe0
Add hash functions for chrono objects
2017-05-01 02:54:06 +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
af1ab16d77
Use CPPUNIT_ASSERT_EQUAL where possible
2017-02-06 18:35:20 +01:00
Martchus
c4d73b0d7d
Use C++14 string literal
2017-02-06 18:32:27 +01: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
d28d477ffe
Complete generation of API doc
...
- Use README.md for main page
- Add install target for API doc
- Improve some doc comments
2016-06-10 22:59:22 +02:00
Martchus
80a4ce1790
added more test cases
2016-01-27 01:01:43 +01:00