Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Time has now reference semantics on js | Yuriy Glukhov | 2016-06-01 | 1 | -1/+2 |
| | |||||
* | Adding OpenBSD to defines | cheatfate | 2016-05-30 | 1 | -4/+4 |
| | |||||
* | Resolve #3059 | cheatfate | 2016-05-30 | 1 | -31/+76 |
| | | | | Make getTimezone() to work properly on FreeBSD and NetBSD. | ||||
* | Some documentation fixes in times module. | Dominik Picheta | 2016-04-06 | 1 | -8/+15 |
| | |||||
* | Deprecate timeToTimeInfo, add str->time procs | coffeepots | 2016-04-06 | 1 | -36/+43 |
| | | | | | | | | | | | | | | | | | | | | | | | * depreciate timeToTimeInfo, add str->time procs initTime allows creating times from strings. initTimeFromStr offers a default format string compatible with $Time. timeToTimeInterval changed to work properly. * Spell {.deprecated.} correctly * deprecated timeToTimeInfo, removed initTime procs Is it even worth depreciating timeToTimeInfo rather than just removing it, considering it's just wrong and we have getLocalTime and getGMTime that actually work? Also, if I'm renaming timeToTimeInfo -> toTimeInfo etc, isn't the deprecated tag kind of redundant? * Updated names for toTime and toTimeInterval procs * Added type to toTime template This should allow compilation of os.nim now that toTime is defined in times.nim. * Updated toTime template to use {.gensym.} Local templates default to 'bind' semantics, not 'gensym'. This was causing a failure to 'see' the local toTime template. | ||||
* | Spellcheck | Federico Ceratto | 2016-02-29 | 1 | -1/+1 |
| | |||||
* | Fixed issue 3905 with getTimezone in js | Anatoly Galiulin | 2016-02-26 | 1 | -1/+1 |
| | |||||
* | Fixed TimeInterval bug. | Dominik Picheta | 2016-01-08 | 1 | -6/+9 |
| | |||||
* | Fixed ttime test. Improved docs in times module. | Dominik Picheta | 2016-01-08 | 1 | -3/+16 |
| | |||||
* | add timeinterval helping functions as per issue #3609 | JamesP | 2015-12-08 | 1 | -22/+130 |
| | | | | | | | | | | add tests to ttime.nim for timeinterval add/subtract functionality Changed assert to doAssert in ttime.nim Added extra tests to ttime.nim Removal of singular help procs for working with TimeIntervals Added TimeIin proc toSeconds(a: TimeInfo, interval: TimeInterval) where subtracting a year gave wrong results Add overflow of units on initInterval eg, 65 seconds is 5 seconds and 1 minute | ||||
* | Add comment at end of file on where to find further tests | JamesP | 2015-12-01 | 1 | -0/+3 |
| | |||||
* | Removal of tests from times module, that have been moved to ttime.nim test file | JamesP | 2015-12-01 | 1 | -116/+4 |
| | |||||
* | added an assertion | Araq | 2015-10-27 | 1 | -1/+3 |
| | |||||
* | Example: add extra getGmTime interval addition example | JamesP | 2015-09-10 | 1 | -1/+2 |
| | |||||
* | tests added: toSeconds with local/GM timezones, interval add/sub | JamesP | 2015-09-10 | 1 | -0/+25 |
| | | | | with local/GM timezones | ||||
* | bug fix: `+` and `-` handle GM and Local time correctly | JamesP | 2015-09-10 | 1 | -8/+8 |
| | | | | eg, getGmTime(getTime()) + initInterval(hours=1) gave incorrect results | ||||
* | add examples block to top of times module | JamesP | 2015-09-10 | 1 | -0/+19 |
| | |||||
* | times: Export & document countLeapYears/Years/Days | Adam Strzelecki | 2015-09-03 | 1 | -14/+18 |
| | | | | | | | | Previously countYears & countDays procs were not public, but there were unused, causing unnecessary warnings generated by standard library. Since these procs seems to be useful it is better to just export them than remove them completely. Also turning inline comments into proper documentation. | ||||
* | Fixed compilation of times module with JS. | Yuriy Glukhov | 2015-08-14 | 1 | -16/+18 |
| | |||||
* | Fixed fromSeconds function JS variant | Yuriy Glukhov | 2015-08-12 | 1 | -1/+1 |
| | |||||
* | Merge pull request #3114 from coffeepots/patch-1 | Dominik Picheta | 2015-08-08 | 1 | -0/+126 |
|\ | | | | | Procs to decode Time to TimeInfo & TimeInterval | ||||
| * | Removed unused leapYearsSinceEpoch | coffeepots | 2015-07-31 | 1 | -3/+0 |
| | | |||||
| * | Implemented changes suggested by dom96 | coffeepots | 2015-07-31 | 1 | -42/+39 |
| | | | | | | | | | | | | * Removed extraneous exports (and converted const array to separate consts) * Renamed dayOfWeek, dayOfWeekJulian to getDayOfWeek and getDayOfWeekJulian * Renamed decodeTime procs to timeToTimeInfo and timeToTimeInterval * Added some basic descriptions to docs | ||||
| * | Fixed dayOfWeekJulian, exported SecondScale | coffeepots | 2015-07-16 | 1 | -5/+7 |
| | | |||||
| * | Procs to decode Time to TimeInfo & TimeInterval | coffeepots | 2015-07-14 | 1 | -0/+130 |
| | | | | | | Fills in the missing functionality of decoding Time to TimeInfo and TimeInterval, whilst also adding some procs to work with leap years and to get the day of the week based on a date. | ||||
* | | Merge pull request #3161 from barcharcraz/fix_times_on_vcc2015 | Dominik Picheta | 2015-08-03 | 1 | -5/+11 |
|\ \ | | | | | | | import the correct symbols on windows | ||||
| * | | make this change VCC specific | Charlie Barto | 2015-08-02 | 1 | -3/+8 |
| | | | |||||
| * | | import the correct symbols on windows | Charlie Barto | 2015-07-31 | 1 | -6/+7 |
| | | | |||||
* | | | Improved errors in times.parse. | Dominik Picheta | 2015-07-24 | 1 | -7/+14 |
| | | | |||||
* | | | Fix times' parse with literal strings | Magnus Holm | 2015-07-24 | 1 | -1/+3 |
| |/ |/| | |||||
* | | Added `getDaysInYear` proc | apense | 2015-07-06 | 1 | -2/+6 |
| | | |||||
* | | stdlib: don't use deprecated symbols | Araq | 2015-06-04 | 1 | -1/+1 |
| | | |||||
* | | Fixed 'milliseconds' spelling in code and docs | pdw | 2015-05-15 | 1 | -6/+11 |
| | | |||||
* | | Year shouldn't be arbitrarily limited to -10_000 .. 10_000. Instead it's | def | 2015-04-29 | 1 | -2/+2 |
|/ | | | | an int now. | ||||
* | fixes #2517 | Araq | 2015-04-25 | 1 | -23/+23 |
| | |||||
* | Turn some test outputs into actual tests | Oleh Prypin | 2015-04-21 | 1 | -3/+1 |
| | |||||
* | Don't run non-test code when defined(testing) | Oleh Prypin | 2015-04-21 | 1 | -3/+5 |
| | |||||
* | Implemented epochTime function for JS target. | yglukhov | 2015-03-31 | 1 | -0/+2 |
| | |||||
* | Use <time.h> instead of <sys/time.h> for tzset and time_t | def | 2015-03-23 | 1 | -73/+73 |
| | | | | This fixes compilation on Linux. | ||||
* | Merge pull request #2309 from oderwat/fix-tzname | Dominik Picheta | 2015-03-12 | 1 | -0/+5 |
|\ | | | | | Fixes tzname on osx (and presumable bsd). | ||||
| * | Adding a call to tzset() to implicitly initialize the tzname infos. | Hans Raaf | 2015-03-12 | 1 | -0/+5 |
| | | |||||
* | | Fix some compiler warnings in times | def | 2015-03-12 | 1 | -8/+9 |
|/ | |||||
* | Replaced deprecated repeatChar() with repeat() or spaces(). | Hans Raaf | 2015-03-04 | 1 | -4/+4 |
| | |||||
* | Merge pull request #2097 from jferg2010/devel | Andreas Rumpf | 2015-02-12 | 1 | -1/+328 |
|\ | | | | | Date/time parsing | ||||
| * | Date/time parsing - removed comments from assert | Jeff | 2015-02-11 | 1 | -6/+6 |
| | | |||||
| * | Date/time parsing with changes suggested by Araq | Jeff | 2015-02-11 | 1 | -334/+283 |
| | | |||||
| * | Date/time parsing with minor changes requested by Dom96 | Jeff | 2015-02-09 | 1 | -32/+29 |
| | | |||||
| * | Date/time parsing | Jeff | 2015-02-09 | 1 | -7/+388 |
| | | |||||
* | | fixed minor bugs; cleaned up tests | Araq | 2015-02-12 | 1 | -51/+51 |
|/ | |||||
* | merged things from devel | Araq | 2014-09-12 | 1 | -1/+1 |
|\ |