summary refs log tree commit diff stats
path: root/tests/js/ttimes.nim
Commit message (Collapse)AuthorAgeFilesLines
* Better times module (#6552)GULPF2017-12-181-19/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * First work on better timezones * Update tests to new api. Removed tests for checking that `isDst` was included when formatting, since `isDst` no longer affects utc offset (the entire utc offset is stored directly in `utcOffset` instead). * Deprecate getLocaltime & getGmTime * Add `now()` as a shorthand for GetTIme().inZone(Local) * Add FedericoCeratto's timezone tests (#6548) * Run more tests in all timezones * Make month enum start at 1 instead of 0 * Deprecate getDayOfWeekJulian * Fix issues with gc safety * Rename TimeInfo => DateTime * Fixes #6465 * Improve isLeapYear * FIx handling negative adjTime * Cleanup: - deprecated toSeconds and fromSeconds, added fromUnix and toUnix instead (that returns int64 instead of float) - added missing doc comments - removed some unnecessary JS specific implementations * Fix misstake in JS `-` for Time * Update usage of TimeEffect * Removed unecessary use of `difftime` * JS fix for local tz * Fix subtraction of months * Fix `days` field in `toTimeInterval` * Style and docs * Fix getDayOfYear for real this time... * Fix handling of adding/subtracting time across dst transitions * Fix some bad usage of the times module in the stdlib * Revert to use proper time resoultion for seeding in random.nim * Move deprecated procs to bottom of file * Always use `epochTime` in `randomize` * Remove TimeInterval normalization * Fixes #6905 * Fix getDayOfWeek for year < 1 * Export toEpochDay/fromEpochDay and change year/month/monthday order * Add asserts for checking that the monthday is valid * Fix some remaining ambiguous references to `Time` * Fix ambiguous reference to Time
* make JS tests green on OSX on my local machine; XXX needs further investigationsAndreas Rumpf2017-06-261-1/+4
|
* Tests: JS: Times: Fix text so that it works in timezones other then UTC+4.Konstantin Molchanov2017-03-291-3/+4
| | | | `parse` returns TimeInfo with the local timezone, which may not be the same as the one in the original string. To compare the moments encoded in the original string and returned by `parse`, we normalize them to UTC.
* Tests: Times: JS: Add test for timestamp persistence.Konstantin Molchanov2017-03-271-1/+9
|
* Tests: Times: JS: Local timezone assignment during Time to TimeInfo conversion.Konstantin Molchanov2017-03-271-0/+4
|
* Tests: Times: JS: Fix test.Konstantin Molchanov2017-03-271-1/+1
|
* Tests: Times: JS: Add test for yearday attribute.Konstantin Molchanov2017-03-271-0/+13