lib/timeliness.rb in timeliness-0.1.0 vs lib/timeliness.rb in timeliness-0.1.1
- old
+ new
@@ -10,13 +10,23 @@
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 (:local or :utc)
+ # 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 ]