Sha256: 6737aa05787fbeb736148e4fd2621ca22b891e53741c40a5eb29ead35b1d4ce0
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
require 'date' require 'forwardable' require 'timeliness/helpers' require 'timeliness/formats' require 'timeliness/format_set' require 'timeliness/parser' require 'timeliness/version' module Timeliness class << self extend Forwardable def_delegators Parser, :parse, :_parse def_delegators Formats, :add_formats, :remove_formats, :use_us_formats, :use_euro_formats attr_accessor :default_timezone, :date_for_time_type, :ambiguous_year_threshold alias :dummy_date_for_time_type :date_for_time_type end # Default timezone. Options: # - :local (default) # - :utc # # If ActiveSupport loaded, also # - :current # - 'Zone name' # @default_timezone = :local # Set the default date part for a time type values. @date_for_time_type = [ 2000, 1, 1 ] # Set the threshold value for a two digit year to be considered last century # # Default: 30 # # Example: # year = '29' is considered 2029 # year = '30' is considered 1930 # @ambiguous_year_threshold = 30 end Timeliness::Formats.compile_formats
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
timeliness-0.1.1 | lib/timeliness.rb |