lib/timeliness/definitions.rb in timeliness-0.3.2 vs lib/timeliness/definitions.rb in timeliness-0.3.3
- old
+ new
@@ -74,17 +74,19 @@
'dd-mm-yyyy h:nn',
'ddd, dd mmm yyyy hh:nn:ss tz', # RFC 822
'ddd, dd mmm yyyy hh:nn:ss zo', # RFC 822
'ddd mmm d hh:nn:ss zo yyyy', # Ruby time string
'yyyy-mm-ddThh:nn:ssZ', # ISO 8601 without zone offset
- 'yyyy-mm-ddThh:nn:sszo' # ISO 8601 with zone offset
+ 'yyyy-mm-ddThh:nn:sszo', # ISO 8601 with zone offset
+ 'yyyy-mm-ddThh:nn:ss.u', # ISO 8601 with usec
+ 'yyyy-mm-ddThh:nn:ss.uzo' # ISO 8601 with usec and offset
]
# All tokens available for format construction. The token array is made of
# regexp and key for format component mapping, if any.
#
@format_tokens = {
- 'ddd' => [ '\w{3,9}' ],
+ 'ddd' => [ '\w{3,9}', :wday ],
'dd' => [ '\d{2}', :day ],
'd' => [ '\d{1,2}', :day ],
'mmm' => [ '\w{3,9}', :month ],
'mm' => [ '\d{2}', :month ],
'm' => [ '\d{1,2}', :month ],