Thomas Lauf
6d79ea4a6d
Update copyright statements
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-09-18 12:33:17 +02:00
Thomas Lauf
2535c2c399
Cleanup includes
...
- Remove unused includes
- Use '<..>' style consistently
- Strip any paths from include
- Replace deprecated C++ headers
- Sort includes according to LLVM rules
https://llvm.org/docs/CodingStandards.html#include-style
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-06-17 14:19:02 +02:00
Thomas Lauf
29d3043f29
Update copyright ranges
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2021-05-27 21:11:32 +02:00
Tomas Babej
e5870380a4
doc: Update copyright to 2021
2021-01-02 02:52:39 -05:00
Shaun Ruffell
c75d9fefad
test: Remove unused variables from DatetimeParser.t
...
Quiets the following warnings when building the test:
test/DatetimeParser.t.cpp: In function ‘int main(int, char**)’:
test/DatetimeParser.t.cpp:163:7: warning: unused variable ‘hm’ [-Wunused-variable]
int hm = (12 * 3600) + (34 * 60); // The time 12:34:00 in seconds.
^~
test/DatetimeParser.t.cpp:164:7: warning: unused variable ‘z’ [-Wunused-variable]
int z = 3600; // TZ offset.
^
test/DatetimeParser.t.cpp:317:7: warning: unused variable ‘t8a’ [-Wunused-variable]
int t8a = (8 * 3600);
^~~
test/DatetimeParser.t.cpp:318:7: warning: unused variable ‘t830a’ [-Wunused-variable]
int t830a = (8 * 3600) + (30 * 60);
^~~~~
test/DatetimeParser.t.cpp:319:7: warning: unused variable ‘t8p’ [-Wunused-variable]
int t8p = (20 * 3600);
^~~
test/DatetimeParser.t.cpp:320:7: warning: unused variable ‘t830p’ [-Wunused-variable]
int t830p = (20 * 3600) + (30 * 60);
^~~~~
test/DatetimeParser.t.cpp:321:7: warning: unused variable ‘t12p’ [-Wunused-variable]
int t12p = (12 * 3600);
^~~~
test/DatetimeParser.t.cpp:322:7: warning: unused variable ‘t1p’ [-Wunused-variable]
int t1p = (13 * 3600);
^~~
test/DatetimeParser.t.cpp:325:7: warning: variable ‘adjust’ set but not used [-Wunused-but-set-variable]
int adjust = (time_now.hour () > 10 || (time_now.hour () == 10 && time_now.minute () > 30)) ? 86400 : 0;
^~~~~~
Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
2020-08-11 10:39:34 +02:00
Thomas Lauf
63f230013a
Detect whether a date is meant as range
...
- Add DatetimeParser::parse_range: If a date contains no time, it is assumed to be a fixed range, else an open range starting at given datetime
- Add tests for summary with named dates 'yesterday' and 'today'
- Remove closing of filter in CmdSummary.cpp
- Closes #333
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-06-28 20:52:43 +02:00