Commit graph

124 commits

Author SHA1 Message Date
Paul Beckingham
a50e65a134 Copyright update 2017-01-01 12:30:04 -05:00
Paul Beckingham
355620c640 libhsared: migrating from local to libshared 2016-12-06 07:20:45 -05:00
Paul Beckingham
66915635c8 Build: Eliminated compiler warning 2016-09-09 21:37:37 -04:00
Paul Beckingham
dd72bed28a ISO8601: Added ::sameQuarter 2016-05-30 14:04:49 -04:00
Paul Beckingham
af8434b845 TW-1807: dateformat lacks a flag to display day of week
- Thanks to Ellington Santos.
2016-05-20 14:41:08 -05:00
Paul Beckingham
a1dbb0c294 Perofrmance: Removed redundant parsing in ISO8601d 2016-02-13 11:49:03 -05:00
Paul Beckingham
641d232dea Copyright: Updated to 2016 2015-12-31 15:06:43 -05:00
Paul Beckingham
aafb33287d TW-1733: taskwarrior 2.5.0 can not compile FreeBSD 10.1
- Thanks to ribbon.
2015-12-23 08:09:40 -05:00
Paul Beckingham
253fd35dc7 TW-1425: The 'age' format rounds in odd ways
- While duration formats are still not configurable, the break points for
  formatting units is shifted to be a little more predictable.
- Thanks to Black Ops testing.
2015-11-17 07:47:20 -05:00
Paul Beckingham
e6f142be17 ISO8601: Moved ::parse_epoch to occur first 2015-11-10 17:41:12 -05:00
Paul Beckingham
0141d10d56 ISO8601: Conditional compilation allows Taskserver to reuse code 2015-11-08 17:02:02 -05:00
Paul Beckingham
b4b41215a2 Revert "C++11: Migrated from strtod to std::stod"
This reverts commit db49efd72f.
2015-11-02 18:44:29 -05:00
Paul Beckingham
1bdede371e Revert "ISO8601: Converted from strtol to std::stoi/stoul"
This reverts commit 8205fd2446.
2015-11-02 18:40:34 -05:00
Paul Beckingham
8205fd2446 ISO8601: Converted from strtol to std::stoi/stoul 2015-11-01 21:46:32 -05:00
Paul Beckingham
5c8b7148b4 Task: Moved include to top of list, per flint++ recommendation 2015-11-01 19:59:10 -05:00
Paul Beckingham
db49efd72f C++11: Migrated from strtod to std::stod 2015-11-01 19:44:15 -05:00
Paul Beckingham
d1a6fecde3 ISO8601: Converted ::toString from sprintf for std::stringstream 2015-11-01 18:02:55 -05:00
Paul Beckingham
7a48d25eaa ISO8601: Implemented ::dayNameShort and ::monthNameShort
- Added tests.
2015-11-01 18:02:08 -05:00
Paul Beckingham
9143d8b8e7 ISO8601: Covnerted from sprintf to std::stringstream 2015-11-01 17:20:48 -05:00
Paul Beckingham
d8c5927362 ISO8601: Removed cowardly segfault fix 2015-11-01 17:04:08 -05:00
Paul Beckingham
51def4b12b Lexer: Migrated commify, ucFirst and lowerCase from text to Lexer 2015-10-30 10:57:14 -04:00
Paul Beckingham
61fc32d04f ISO8601: Added ::toISOLocalExtended method 2015-10-30 00:38:49 -04:00
Paul Beckingham
6570a42eee ISO8601: Removed unused methods 2015-10-28 11:47:28 -04:00
Paul Beckingham
10ebefa8eb TW-1716: on-modify hooks fail if date.iso is not set
- Thanks to Jens Erat.
2015-10-18 10:47:25 -04:00
Paul Beckingham
f687ea1010 TW-1715: Dates misinterpreted when no dateformat active.
- To be more specific, dates were misinterpreted when an input date was could
  be unambiguously parsed as either ISO or dateformat, for example, if the
  dateformat was 'Y-M-D', it matches ISO 'Y-M-DTH:N:S', and the dateformat
  was considered a match which ignored the 'H:N:S', if specified.
2015-10-16 11:37:34 -04:00
Paul Beckingham
980dff3048 ISO8601d: Improved ::dump output 2015-10-16 11:35:39 -04:00
Paul Beckingham
4f11740896 ISO8601: Made some methods const 2015-10-16 08:22:57 -04:00
Paul Beckingham
5110a83efa Cleanup: Corrected object initialization using {} 2015-10-16 08:22:03 -04:00
Paul Beckingham
638c2b35c3 ISO8601: Added ::dump methods for debugging 2015-10-16 07:53:11 -04:00
Paul Beckingham
4882a50b1b ISO8601d: Fixed parsing of day and month name 2015-10-10 22:48:47 -04:00
Paul Beckingham
053c97fc1d ISO8601d: Allowed zero-padded values for short form dateformat elements 2015-10-10 21:48:51 -04:00
Paul Beckingham
79886e03ce Merge branch 'isodate' into 2.5.0 2015-10-07 07:40:28 -04:00
Paul Beckingham
13b8c1a3cc Task: Migrated from Date to ISO8601d 2015-10-04 17:18:31 -04:00
Paul Beckingham
5018057f19 ISO8601d: ::parse_named now only considers the first token. 2015-10-04 13:26:10 -04:00
Paul Beckingham
61e494195a ISO8601: Added separate ::isoEnabled settings for ISO8601d and ISO8601p 2015-10-04 10:58:28 -04:00
Paul Beckingham
9adfddfe65 ISO8601: Disentangled ISO8601d and ISO8601p 2015-10-04 10:47:34 -04:00
Paul Beckingham
abbebf69ad ISO8601d: ::parse_named can also skip ::validate and ::resolve 2015-10-04 10:43:44 -04:00
robin92
5ab0a920cc Using own version of timegm when applicable.
Some systems come without timegm function in standard library. Taskwarrior
already has its own implementation defined in util.c. However, this has
never been used as util.h has not been included.
2015-10-03 10:57:19 -04:00
Paul Beckingham
4f156c407c Recur: Migrated recurrence from Date to ISO8601d
- Changed signature of recur functions, which needed a main.h change, which led
  to removing '#include <Date.h>' from main.h, which necessitated adding the
  sam include to various other source files.  Temporarily.
- Added 'ISO8601d ISO8601d::operator+ (time_t)', because of differences from the
  original Date object.
2015-09-30 09:52:09 -04:00
Paul Beckingham
b0e249e564 ISO8601d: Epoch strings are parsed without the same validation as other dates 2015-09-27 16:28:25 -04:00
Paul Beckingham
5cc3c8d05d ISO8601d: Removed obsolete ::isEpoch method 2015-09-27 12:15:18 -04:00
Paul Beckingham
ae22612584 ISO8601d: Upgraded method from private to static public 2015-09-27 12:14:18 -04:00
Paul Beckingham
fdc791a676 ISO8601d: Implemented ::parse_epoch 2015-09-27 11:15:28 -04:00
Paul Beckingham
f294bc0c2b ISO8601d: Integrated formatted dates into ISO8601d
- Eliminated call to Nibbler::getDate.
- Created structure for Named dates and Epochs, still to be integrated.
2015-09-27 02:08:40 -04:00
Paul Beckingham
dbb6a209a8 ISO8601: Added formatted date parsing 2015-09-27 00:18:38 -04:00
Paul Beckingham
6c02c03674 ISO8601d: Added various ::valid methods 2015-09-26 20:51:04 -04:00
Paul Beckingham
d25113e653 ISO8601d: Added ::toString 2015-09-26 20:35:04 -04:00
Paul Beckingham
85703803c8 ISO8601d: Added ::toEpoch 2015-09-26 18:43:11 -04:00
Paul Beckingham
2414f6b3d4 ISO8601d: Added ::toISO 2015-09-26 18:42:32 -04:00
Paul Beckingham
cc8a305b37 ISO8601d: Added ::toEpoch 2015-09-26 18:39:33 -04:00