Commit Graph

46 Commits

Author SHA1 Message Date
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
Paul Beckingham
f32c4d1f73 TW-1492
- TW-1492 compiling v2.4.0 using musl(libc) (thanks to V.Krishn).
2015-01-04 10:14:15 -05:00
Paul Beckingham
b7ad091d00 Updated copyright to 2015 2015-01-01 00:00:41 -05:00
Paul Beckingham
4dd57a01bb ISO8601
- Removed debugging code.
2014-07-05 09:38:52 -04:00
Paul Beckingham
70ba19fd5e Bug TW-1254
- TW-1254 Calc command can segfault on negative numbers (thanks to Renato
          Alves).
- Implemented a recursive descent parser to syntax check the expression,
  and disambiguate unary minus. The syntax checking is not generating any
  diagnostics yet.
2014-04-06 00:29:14 -04:00
Paul Beckingham
122cc2f56d ISO8601
- Simplified and debugged ISO8601::resolve method regarding UTC, local and
  specified time offsets.
2014-03-14 23:48:56 -04:00
Paul Beckingham
065cb2ef01 Bug
- Correct a DST error in date handling.
2014-03-13 21:15:42 -04:00
Paul Beckingham
712b0bb4b5 ISO8601
- Merged libexpr ISO8601 code.
2014-01-02 00:45:16 -05:00