Commit graph

22 commits

Author SHA1 Message Date
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