Commit graph

192 commits

Author SHA1 Message Date
Dominik Picheta
34ca9dd586 Merge pull request #3114 from coffeepots/patch-1
Procs to decode Time to TimeInfo & TimeInterval
2015-08-08 20:56:14 +01:00
Dominik Picheta
85699b744d Merge pull request #3161 from barcharcraz/fix_times_on_vcc2015
import the correct symbols on windows
2015-08-03 17:08:14 +01:00
Charlie Barto
4d6bcbc2f4 make this change VCC specific 2015-08-02 18:55:35 -04:00
Charlie Barto
ad896f03e8 import the correct symbols on windows 2015-07-31 15:08:53 -04:00
coffeepots
f9d909bb94 Removed unused leapYearsSinceEpoch 2015-07-31 10:20:21 +01:00
coffeepots
5e0b8d5ef6 Implemented changes suggested by dom96
* 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
2015-07-31 09:44:37 +01:00
Dominik Picheta
a88131ed4a Improved errors in times.parse. 2015-07-24 22:46:24 +01:00
Magnus Holm
fdf454e3ae Fix times' parse with literal strings 2015-07-24 18:08:05 +02:00
coffeepots
a2f0fe03b6 Fixed dayOfWeekJulian, exported SecondScale 2015-07-16 10:20:34 +01:00
coffeepots
f09916d720 Procs to decode Time to TimeInfo & TimeInterval
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.
2015-07-14 11:58:26 +01:00
apense
71743b5af3 Added getDaysInYear proc 2015-07-06 01:03:34 -04:00
Araq
ccb9ae2d52 stdlib: don't use deprecated symbols 2015-06-04 13:18:42 +02:00
pdw
cb6f867495 Fixed 'milliseconds' spelling in code and docs 2015-05-15 20:15:12 -05:00
def
60862c22f5 Year shouldn't be arbitrarily limited to -10_000 .. 10_000. Instead it's
an int now.
2015-04-29 21:34:03 +02:00
Araq
6725aa3634 fixes #2517 2015-04-25 23:16:59 +02:00
Oleh Prypin
22db40e5e4 Turn some test outputs into actual tests 2015-04-21 15:59:32 +03:00
Oleh Prypin
32109a7867 Don't run non-test code when defined(testing) 2015-04-21 14:37:29 +03:00
yglukhov
9e2d6d072c Implemented epochTime function for JS target. 2015-03-31 00:23:43 +03:00
def
b0c64bf848 Use <time.h> instead of <sys/time.h> for tzset and time_t
This fixes compilation on Linux.
2015-03-23 11:03:44 +01:00
Dominik Picheta
c707923cc1 Merge pull request #2309 from oderwat/fix-tzname
Fixes tzname on osx (and presumable bsd).
2015-03-12 17:19:04 +00:00
Hans Raaf
798e5c7552 Adding a call to tzset() to implicitly initialize the tzname infos. 2015-03-12 17:00:06 +01:00
def
44e68be13b Fix some compiler warnings in times 2015-03-12 13:15:19 +01:00
Hans Raaf
58186f6c1d Replaced deprecated repeatChar() with repeat() or spaces(). 2015-03-04 03:30:43 +01:00
Andreas Rumpf
f039aad5e0 Merge pull request #2097 from jferg2010/devel
Date/time parsing
2015-02-12 21:54:43 +01:00
Araq
10335fd726 fixed minor bugs; cleaned up tests 2015-02-12 14:56:56 +01:00
Jeff
7251fbd76e Date/time parsing - removed comments from assert 2015-02-11 15:52:15 +09:00
Jeff
3643068527 Date/time parsing with changes suggested by Araq 2015-02-11 15:42:33 +09:00
Jeff
5424ab3d7e Date/time parsing with minor changes requested by Dom96 2015-02-09 21:46:18 +09:00
Jeff
13c5ce820e Date/time parsing 2015-02-09 20:58:36 +09:00
Araq
9d9c3fe121 merged things from devel 2014-09-12 01:37:48 +02:00
Araq
63548f04b2 manual merge of #1526 2014-09-11 20:15:50 +02:00
Araq
4523b29d7a Nimrod renamed to Nim 2014-08-28 09:59:26 +02:00
Araq
df172806ea big rename 2014-08-28 00:24:52 +02:00
Araq
11b6958755 big rename 2014-08-27 23:42:51 +02:00
Araq
2f43fdb837 renamefest 2014-08-23 01:43:49 +02:00
def
dfba87f3ed Make times module compile with javascript backend 2014-08-16 02:16:21 +02:00
Grzegorz Adam Hankiewicz
2353b5633e Hyperlinks back JavaScript target. 2014-06-21 23:48:41 +02:00
Araq
e6d17e6273 made large parts of the stdlib gcsafe 2014-04-20 20:01:24 +02:00
Grzegorz Adam Hankiewicz
293f356420 Supports parsing format times without separators. Refs #740. 2014-02-15 11:20:00 +01:00
Grzegorz Adam Hankiewicz
bd9e9acdaa Splits token parsing case into separate proc. Refs #740. 2014-02-15 11:02:13 +01:00
EXetoC
38e4dfc164 Export procs that are useful elsewhere. 2014-02-06 14:18:44 +01:00
Araq
73c6efdf66 'nil' as a statement is deprecated, use an empty 'discard' instead 2014-01-19 16:54:59 +01:00
Araq
b731e6ef1c case consistency: cs:partial bootstraps on windows 2013-12-29 03:19:10 +01:00
Araq
1101a40f91 improvements for 'pretty' 2013-12-28 23:30:53 +01:00
Araq
92b8fac94a case consistency part 4 2013-12-27 23:10:36 +01:00
Araq
2df9b442c6 case consistency part 1 2013-12-27 15:48:53 +01:00
Grzegorz Adam Hankiewicz
d037aec415 Fixes times.toSeconds to handle hours and minutes correctly. 2013-11-17 21:31:05 +01:00
Araq
83876b1b81 bugfix: rendering of typ|typ2 2013-06-27 19:57:01 +02:00
Araq
23ef565a3c implemented large parts of the 'not nil' checking 2013-06-09 23:29:43 +02:00
Araq
2ec3e6b49e more accurate effects for times.nim; bugfix for the JS codegen 2013-05-31 12:20:55 +02:00