Sha256: 4a1c2f0a085c1981418fce348ac0e15d660569d98e4c50b659a5c7f26055ba09
Contents?: true
Size: 364 Bytes
Versions: 2
Compression:
Stored size: 364 Bytes
Contents
# Public: Minuteman core classs # class Minuteman # Public: Month TimeSpan class # class Week < TimeSpan private # Private: The format that's going the be used for the date part of the key # # date - A given Time object # def time_format(date) week = date.strftime("%W") [date.year, "W" + week] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
minuteman-1.0.3 | lib/minuteman/time_spans/week.rb |
minuteman-1.0.2 | lib/minuteman/time_spans/week.rb |