lib/active_object/time.rb in active_object-5.2.0 vs lib/active_object/time.rb in active_object-5.2.1
- old
+ new
@@ -32,10 +32,10 @@
daytime: '%B %-d %H:%M', daytime_abbr: '%b %-d %H:%M', daytime_iso: '%m-%d %H:%M',
daytime_imperical: '%B %-d %I:%M %P', daytime_imperical_abbr: '%b %-d %I:%M %P',
daytime_imperical_iso: '%m-%d %I:%M %P', time_imperical_padded: '%I:%M %P',
time_imperical_blank: '%l:%M %P', time_imperical_tz: '%I:%M %P %z',
time_imperical_tzn: '%I:%M %P %Z', sunday_week: '%U', monday_week: '%W', week_iso: '%V',
- week_year_iso: '%V-%G'
+ week_year_iso: '%V-%G', year_day: '%Y-%m-%d', year_month: '%Y-%m', year_week: '%G-%V'
}.freeze
STRING_UNITS ||= {
d: 'd', day: 'd', day_padded: 'd', dd: '-d', Day: '-d', day_unpadded: '-d', ddd: '_d',
zz: ':z', DAY: '_d', day_blank: '_d', dddd: 'j', day_of_the_year: 'j', m: 'm', month: 'm',
hhhh: 'l', month_padded: 'm', mm: '-m', Month: '-m', month_unpadded: '-m', mmm: '_m',