Commit graph

57 commits

Author SHA1 Message Date
Paul Beckingham
c095289208 ISO8601d: Added ::operator+ 2015-09-26 15:33:45 -04:00
Paul Beckingham
957c8b7e7b ISO8601d: Added ::ISO8601 (time_t) 2015-09-26 15:18:29 -04:00
Paul Beckingham
79f030b199 ISO8601d: Added ::sameYear 2015-09-26 15:11:58 -04:00
Paul Beckingham
04836c2cec ISO8601d: Added ::sameMonth 2015-09-26 15:10:04 -04:00
Paul Beckingham
aa90fdbe1c ISO8601d: Added ::sameWeek 2015-09-26 15:07:48 -04:00
Paul Beckingham
2c449583ef ISO8601d: Added ::sameDay 2015-09-26 15:05:58 -04:00
Paul Beckingham
ec66bc73d3 ISO8601d: Added ::sameHour 2015-09-26 15:04:01 -04:00
Paul Beckingham
fe509cd3dd ISO8601d: Added ::operator>= 2015-09-26 15:01:29 -04:00
Paul Beckingham
b7afcb9723 ISO8601d: Added ::opreator<= 2015-09-26 14:59:47 -04:00
Paul Beckingham
e09eee1a59 ISO8601d: Added ::operator> 2015-09-26 14:58:24 -04:00
Paul Beckingham
9f8ea49446 ISO8601d: Added ::operator< 2015-09-26 14:56:36 -04:00
Paul Beckingham
7a996dfadf ISO8601d: Added ::operator!= 2015-09-26 14:54:34 -04:00
Paul Beckingham
90ac0e2b17 ISO8601d: Added ::operator== 2015-09-26 14:51:46 -04:00
Paul Beckingham
ff320345e9 ISO8601: Added ::monthOfYear and tests 2015-09-26 14:47:08 -04:00
Paul Beckingham
f26cff9a4a ISO8601d: Added :dayName methods and tests 2015-09-26 14:32:14 -04:00
Paul Beckingham
7164215146 ISO8601d: Added ::hour, ::minute, ::second 2015-09-26 14:25:19 -04:00
Paul Beckingham
5ed0d13194 ISO8601d: Added ::dayOfYear 2015-09-26 14:24:33 -04:00
Paul Beckingham
ac428e1f1a ISO8601d: Added ::dayOfWeek 2015-09-26 14:23:41 -04:00
Paul Beckingham
66dc016ce6 ISO8601d: Added ::weekOfYear 2015-09-26 14:22:37 -04:00
Paul Beckingham
af81b24d92 ISO8601d: Added ::year 2015-09-26 14:21:42 -04:00
Paul Beckingham
eeac423fd6 ISO8601d: Added ::day 2015-09-26 14:20:32 -04:00
Paul Beckingham
17185c7911 ISO8601d: Added ::week 2015-09-26 14:18:54 -04:00
Paul Beckingham
24ff570427 ISO8601d: Added ::month 2015-09-26 14:16:38 -04:00
Paul Beckingham
0d6788635e ISO8601d: Added ::monthName and tests 2015-09-26 14:02:26 -04:00
Paul Beckingham
965415d7a4 ISO8601d: Added ::daysInYear and tests 2015-09-26 13:57:10 -04:00
Paul Beckingham
d8eb0ac0da ISO8601d: Added ::daysInMonth and tests 2015-09-26 13:52:43 -04:00
Paul Beckingham
6f5d07dcd4 ISO8601d: Added ::leapYear and tests 2015-09-26 13:47:27 -04:00
Paul Beckingham
f615db8a4c ISO8601d: Added ::length and tests 2015-09-26 13:38:32 -04:00
Paul Beckingham
91588c7e96 ISO8601: Added static ::dayOfWeek 2015-09-26 13:29:31 -04:00
Paul Beckingham
6f726bf1cf ISO8601d: Added ::minimumMatchLength 2015-09-26 12:57:57 -04:00
Paul Beckingham
541e9eec30 Context: Initialize ISO8601::weekstart 2015-09-26 12:40:56 -04:00
Paul Beckingham
eeb592d032 ISO8601d: Renamed ::_value to ::_date 2015-09-26 12:26:09 -04:00
Paul Beckingham
bb53ae17ae ISO8601p: Renamed ::_value to ::_period 2015-09-26 12:17:57 -04:00
Paul Beckingham
219f23de33 ISO8601: Default ctor implies 'now' 2015-09-26 11:55:29 -04:00
Paul Beckingham
2b3691508f ISO8601: Prepared ::parse method for its new role of parsing all dates 2015-09-26 11:39:45 -04:00
Paul Beckingham
35b52c421b ISO8601: Implemented ISO8601p::formatVague for short-form, rounded values 2015-08-12 16:22:13 -04:00
Paul Beckingham
e8fe7f0304 ISO8601: Fixed problem with uninitialized members 2015-08-12 10:07:43 -04:00
Paul Beckingham
a86e45c31e ISO8601: Added time_t ctor 2015-08-12 08:01:43 -04:00
Paul Beckingham
4a6df38e6a ISO8601: Modifed ::format to use only precise values. 2015-08-11 23:13:23 -04:00
Paul Beckingham
645af76ddb ISO8601: Merged Duration::parse functionality 2015-08-09 17:15:25 -04:00
Paul Beckingham
6dc7244fa6 ISO8601: Began merge of Duration and ISO8601p 2015-08-09 16:33:21 -04:00
Paul Beckingham
234ad3d03b ISO8601: Year validation should extend beyond 2100 2015-08-01 15:40:34 -04:00
Paul Beckingham
7ac86185e4 ISO8601: Dead code removal 2015-07-17 15:01:13 -04:00
Paul Beckingham
0df1c48f42 ISO8601: Added range checking for various date elements 2015-07-05 15:29:41 -04:00
Paul Beckingham
b0c8f4ca4f ISO8601: Restored support for the UTC & local non-extended full form 2015-07-04 16:04:03 -04:00
Paul Beckingham
2402ec8d6e ISO8601: Removed the need for ::ambiguity 2015-07-01 17:59:27 -04:00
Paul Beckingham
4b8fdd0fbe ISO8601: Removed non-extended forms
- Removed support for non-extended forms, which is approximately half of the
  formats.  These include:
    YYYYMMDD
    YYYYWww
    YYYYWwwD
    hhmmѕsZ
    hhmmZ
    hhZ
  and combinations thereof. Essentially all forms that contains run-on sequences
  of integers, without separators. These removed forms will still be supported
  via rc.dateformat.
- Removed unsupported forms from iso8601d.t.cpp.
- Removed unsupported forms from datetime-negative.t, and corrected the tests
  that now succeed.
2015-06-27 13:48:42 -04:00
Paul Beckingham
fcfc1d1a31 ISO8601: Removed ambiguous format support
- Disallows 2-digit times, such as 14 (2pm).  Now requires at least minutes
  included as well. This is likely to need further review, and possible dropping
  of all non-extended date forms (hhmmss, yyyymmdd), otherwise there will always
  be confusion between ID, UUID and ISO8601 dates.
- Removed 2-digit time tests.
2015-06-25 23:20:59 -04:00
Paul Beckingham
e8d04bdce6 C++11: N1984 auto 2015-05-24 13:36:26 -04:00
Paul Beckingham
3cbb2bb20f Lexer: Migrated isdigit to Lexer::isDigit 2015-04-16 23:33:25 -04:00