Skip to content
Commits on Sep 14, 2013
  1. Add '_' as a valid whitespace character.

    This fixes a bug in the UTC date handling which would sometimes result
    in the day being off by one (+1).
    committed Sep 14, 2013
Commits on Sep 13, 2013
Commits on Sep 7, 2013
  1. Time tests and fixes.

    This adds tests for the time specifiers (including with all the previous
    date tests). Combined this brings the tests up to ~360k with 88% lines
    Statements   : 88.52% ( 1782/2013 )
    Branches     : 79.15% ( 953/1204 )
    Functions    : 93.48% ( 86/92 )
    Lines        : 88.46% ( 1756/1985 )
    Fixed the following bugs:
    * UTC timezone wasn't being honored.
    * The 4 digit time format (e.g. 1230) wasn't being parsed correctly.
    * AM/PM designators weren't being converted to numerical values
    committed Sep 7, 2013
  2. Garbage test cases to exercise those error codes.

    This brings the coverage up from 60% to 77%. Now all that's left are
    those 'time' derived 'spec_base's.
    committed Sep 6, 2013
  3. Add istanbul test coverage.

    You'd think with this many tests we'd have covered every line of code in
    the parser... but you forget all those error codes we aren't exercising!
    committed Sep 6, 2013
  4. Increment and decrement testing and bug fixes.

    Implemented as the mother of all tests... this wraps the existing test
    suite in a loop over a range of +/- {years, months, ...}. This also
    switches the tests to use the 'spec' reporter to make it easier to spot
    As with all tests this revealed some issues with the parsing of dates.
    Specifically, some initializations woudn't zero out the hours, minutes,
    seconds, and milliseconds resulting in bad results with doing date
    committed Sep 6, 2013
  5. Tests for NEXT and LAST.

    committed Sep 6, 2013
Commits on Sep 6, 2013
  1. Add some tests and fix off by one in month.

    Thanks to @mrmanc who fixed this in his fork and I surreptitiously fixed
    again upstream.
    committed Sep 6, 2013
Commits on Apr 10, 2013
  1. Version 0.1.1

    committed Apr 10, 2013
  2. Fix 'today' to use midnight for time.

    Seems more intuitive to me anyway. Before it would return the same
    result as 'now'.
    committed Apr 9, 2013
Commits on Apr 9, 2013
  1. Initial Import

    committed Apr 9, 2013
  2. Initial commit

    committed Apr 9, 2013
Something went wrong with that request. Please try again.