lib/active_object/date.rb in active_object-5.1.0 vs lib/active_object/date.rb in active_object-5.1.1
- old
+ new
@@ -27,10 +27,11 @@
month_name_abbr: '%b', month_year: '%m %Y', month_padded_year: '%m %Y', day_iso: '%m-%d',
month_unpadded_year: '%-m %Y', month_blank_year: '%_m %Y', month_name_year: '%B %Y',
month_name_abbr_year: '%b %Y', weekday: '%d', weekday_padded: '%d', weekday_unpadded: '%-d',
weekday_blank: '%_d', weekday_name: '%A', weekday_name_abbr: '%a', yr: '%y', year_abbr: '%y',
year: '%Y', date: '%B %-d, %Y', date_abbr: '%b %-d, %Y', date_iso: '%Y-%m-%d', day: '%B %-d',
- day_abbr: '%b %-d', sunday_week: '%U', monday_week: '%W', week_iso: '%V', week_year_iso: '%V-%G'
+ day_abbr: '%b %-d', sunday_week: '%U', monday_week: '%W', week_iso: '%V',
+ week_year_iso: '%V-%G'
}.freeze
def count_centuries_since(time)
count_seconds_since(time) / CENTURY
end