Added parsing with format.
Extracted common functions from date-format,
Added tests.
Still need to add more parsers.
All parsers in.
Have to do more testing.
Avoiding packing and unpacking arguments by using a couple
of instance properties to pass data around.
Completed the API docs.
Changed parseDigits to use regexp.
Now using NaN as an error flag that propagates easily.
Instead of buffer and index, I switched to shifting the
string, because I was doing it a lot anyway and it saved nothing.
Added tests for each of the formatting specs and fixed some of them
Merge branch 'dev-3.x' into dateparser
User Guide.
Fixed an error in parse.
Merge branch 'dev-3.x' into dateparser
Y.Date.format accepts the second argument to be a string
which will be assumed to be the formatting specification.
The API doc comments were fixed
- xPad was documented though it can't actually be accessed
- static methods were not declared so
- a few others.
JSHint errors were also fixed:
- multiple vars
- mixed tabs and spaces
- trailing whitespace
- double equals turned into triple equals
JSHint errors fixed:
- mixed tabs and spaces
- multiple var declarations
- double equals into triple equals
- trailing spaces
API docs fixed:
- static methods were declared so
Fixed API docs comments
- added static declaration on most methods
- added protected to some
Fixed error in I and l formats (12:00am is actually 00:00).
Added support for %Z and derived (%c).
Added timezone abbreviations table.
Postponed century calculation.
Uses Date.UTC when timezone info is present.
Improved and added to tests
Updated user guide indicating limited support for %Z
(timezone abbreviations)
Loads locale language resources on each call to
parse or format so that you can switch languages
on the fly.
Changed a few tests so they work across different time-zones.
Added further tests to almost full coverage.
Discovered errors in military timezones.
Hopefully this will make the test timezone independent.
Added to parse the same optional config argument that
format uses.
Added tests, updated the API docs and user guide.
Moved the regular expression out of the method.
Merge branch 'dev-3.x' into numberparser