Adam Meehan
|
1e3c802031
|
capture zone offset value in formats to possible usage
|
2009-03-31 21:35:49 +11:00 |
|
Adam Meehan
|
a836ed8434
|
changed Formats#parse to take options hash for strict and other possibilities
|
2009-03-28 17:35:41 +11:00 |
|
Adam Meehan
|
904c202fb4
|
little cleanup and consistency
|
2009-02-09 12:11:56 +11:00 |
|
Adam Meehan
|
29c23a7a26
|
move format compilcation call to where it belongs
|
2009-02-08 13:02:06 +11:00 |
|
Adam Meehan
|
71583805c8
|
fixed regex for yy format token which wasn't greedy enough when datetime string parsed as date causing a 4 digit year to be extracted as first 2 digits
|
2009-01-21 14:07:35 +11:00 |
|
Adam Meehan
|
65ed8a657e
|
format months names now respect i18n
|
2009-01-13 20:05:55 +11:00 |
|
Adam Meehan
|
7c9ec695f4
|
small refactor and cleanup of formats class
|
2009-01-12 21:42:14 +11:00 |
|
Adam Meehan
|
40437c970d
|
make format error raise with message
|
2008-12-07 21:29:50 +11:00 |
|
Adam Meehan
|
705e787775
|
small cleanup and correction of docs
|
2008-11-23 17:42:34 +11:00 |
|
Adam Meehan
|
889bdc3ae3
|
allow uppercase meridian to be valid
|
2008-11-13 10:26:16 +11:00 |
|
Adam Meehan
|
ed165d3f9d
|
minor doc changes
|
2008-07-25 22:30:24 +10:00 |
|
Adam Meehan
|
7500781887
|
added compile_set method to get expressions and combine date and datetime expressions to allow a date string to parse when type is datetime
made internal methods private
|
2008-07-23 12:39:20 +10:00 |
|
Adam Meehan
|
89f12b3a25
|
renamed extract method to parse and updated specs
|
2008-07-22 08:34:14 +10:00 |
|
Adam Meehan
|
3c9ad4a5ee
|
added microseconds adjustment method and added proc_args
|
2008-07-21 16:50:08 +10:00 |
|
Adam Meehan
|
539f823b8b
|
removed usless whitespace check in non-strict regexp match
|
2008-07-21 13:47:19 +10:00 |
|
Adam Meehan
|
1836e4f6ca
|
removed setting of time parts to 0 for date type in parse as any time parts should be valid as well
format proc now returns time array with nil values as 0
|
2008-07-21 10:31:06 +10:00 |
|
Adam Meehan
|
70ba75a4ae
|
added switching to euro date formats instead of US
|
2008-07-20 08:38:34 +10:00 |
|
Adam Meehan
|
5f55fad076
|
added :before option to add_formats to insert above existing format
|
2008-07-20 07:45:22 +10:00 |
|
Adam Meehan
|
05abd4e984
|
minor line shifts
|
2008-07-19 19:49:15 +10:00 |
|
Adam Meehan
|
5983622ac8
|
moved extact_date_time_values method in to Formats and added specs
changed Formats to a class
|
2008-07-19 19:47:03 +10:00 |
|
Adam Meehan
|
8ab82411ca
|
added format add and remove methods
fixed slashes and 'd' token matching
specs for time and date format validation
|
2008-07-19 17:17:53 +10:00 |
|
Adam Meehan
|
ec46a3bd35
|
added specs for formats and more docs
renamed valid_time_formats etc to time_formats
|
2008-07-18 16:29:26 +10:00 |
|
Adam Meehan
|
e18d0ee9f4
|
moved tokens and proc arg map into class arrays
|
2008-07-18 11:27:32 +10:00 |
|
Adam Meehan
|
c9a3075c35
|
rewrote format regexp hash into time format to regexp generator
|
2008-07-18 08:05:21 +10:00 |
|
Adam Meehan
|
33c298163e
|
moved format proc helper methods into formats module so they work
|
2008-07-17 16:25:54 +10:00 |
|
Adam Meehan
|
c37c3e82fa
|
moved formats to own module
|
2008-07-17 15:08:33 +10:00 |
|