Sha256: aee2c906a249c4e0347f034d37e0235c22754b8477923826564aa36ab1bdcd88

Contents?: true

Size: 450 Bytes

Versions: 2

Compression:

Stored size: 450 Bytes

Contents

# Public: Minuteman core classs
#
class Minuteman
  # Public: Minute TimeSpan class
  #
  class Minute < 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, date.min]
      [full_date + " " + time]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
minuteman-1.0.3 lib/minuteman/time_spans/minute.rb
minuteman-1.0.2 lib/minuteman/time_spans/minute.rb