Sha256: 61b96b1222e4e705aa183648afbffa26f2d5cdc24cd12214f87868f0a38be55f

Contents?: true

Size: 368 Bytes

Versions: 1

Compression:

Stored size: 368 Bytes

Contents

# frozen_string_literal: true

class Time

  include Lite::Ruby::DateHelper
  include Lite::Ruby::TimeHelper

  private

  def default_format
    'year-month-day hour:minute'
  end

  def default_stamp
    :datetime_iso
  end

  def format_for(key)
    TIME_UNITS[key] || DATE_UNITS[key]
  end

  def stamp_for(key)
    TIME_STAMPS[key] || DATE_STAMPS[key]
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lite-ruby-1.0.0 lib/lite/ruby/time.rb