Commit Graph

28 Commits

Author SHA1 Message Date
Martchus 77c353fb6c Add `TickType` and integer overloads to chrono utilities 2022-02-15 23:01:25 +01:00
Martchus b3ebe5ce38 Fix typos found via `codespell --skip .git -w` 2021-07-03 19:07:49 +02:00
Martchus 8c033ca243 Fix warnings 2021-03-20 21:56:45 +01:00
Martchus e6f4bf3561 Apply clang-format 2020-10-31 20:31:04 +01:00
Martchus 1f4fabcd9f Add operators '*' and '/' to TimeSpan 2020-10-24 22:10:25 +02:00
Martchus 5c098df8d7 Fill last gaps in class list documentation 2019-09-04 18:54:48 +02:00
Martchus 0feb7d667e Add inline/constexpr to more functions in chrono lib 2019-08-19 19:09:19 +02:00
Martchus b48b2f5c06 Have everything in one top-level namespace 2019-06-10 21:56:46 +02:00
Martchus 9a50d2b8df Remove types 2019-04-13 20:33:39 +02:00
Martchus 8b919250e3 chrono utils: Make public constants signed 2019-04-13 20:33:39 +02:00
Martchus 7b01938ece Add {TimeSpan,DateTime}::ticks() for easier read/write 2018-06-23 14:32:46 +02:00
Martchus a89f6f9ce4 Improve documentation of chrono library 2017-12-03 01:45:11 +01:00
Martchus 3051675bbe Allow conversion of TimeSpan to string with total seconds 2017-11-27 10:25:41 +01: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 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 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 a8f7644350 minor adjustments 2016-01-18 23:41:30 +01: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 24ba96a17f First commit 2015-04-22 18:36:40 +02:00