Sha256: 25cf5b5168d05e4581aa8cf3ee0fa3c23d0c048906acba0e5d8a91f7717a9648

Contents?: true

Size: 369 Bytes

Versions: 7

Compression:

Stored size: 369 Bytes

Contents

class Minuteman
  class Hour < 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)
      full_date = DATE_FORMAT % [date.year, date.month, date.day]
      time = TIME_FORMAT % [date.hour, 0]
      [full_date + " " + time]
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
minuteman-1.0.0.pre lib/minuteman/time_spans/hour.rb
minuteman-0.2.0 lib/minuteman/time_spans/hour.rb
minuteman-0.2.0.pre lib/minuteman/time_spans/hour.rb
minuteman-0.1.1 lib/minuteman/time_spans/hour.rb
minuteman-0.1.0 lib/minuteman/time_spans/hour.rb
minuteman-0.0.2 lib/minuteman/time_spans/hour.rb
minuteman-0.0.1 lib/minuteman/time_spans/hour.rb