Sha256: e2772b377ae4cb9754886778b34c8075add6bea4b00aacf2591d9c25fa571159

Contents?: true

Size: 491 Bytes

Versions: 48

Compression:

Stored size: 491 Bytes

Contents

module Incline
  module DateTimeFormats
    US_DATE_FORMAT = /\A(?<MONTH>\d{1,2})\/(?<DAY>\d{1,2})\/(?<YEAR>(?:\d{2}|\d{4}))(?:\s+(?<HOUR>\d{1,2}):(?<MINUTE>\d{1,2})(?::(?<SECOND>\d{1,2})(?:\.(?<FRACTION>\d+))?)?(?:\s*(?<AMPM>[AP])M?)?)?\z/i
    ALMOST_ISO_DATE_FORMAT = /\A(?<YEAR>\d{2,4})-(?<MONTH>\d{1,2})-(?<DAY>\d{1,2})(?:(T|\s+)(?<HOUR>\d{1,2}):(?<MINUTE>\d{1,2})(?::(?<SECOND>\d{1,2})(?:\.(?<FRACTION>\d+))?)?(?:\s*(?<AMPM>[AP])M?)?(?:\s*(?<TZ>(?:Z|[+-]\d{2}:?\d{2})))?)?\z/
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
incline-0.2.6 lib/incline/date_time_formats.rb
incline-0.2.5 lib/incline/date_time_formats.rb
incline-0.2.4 lib/incline/date_time_formats.rb
incline-0.2.3 lib/incline/date_time_formats.rb
incline-0.1.9 lib/incline/date_time_formats.rb
incline-0.1.8 lib/incline/date_time_formats.rb
incline-0.1.7 lib/incline/date_time_formats.rb
incline-0.1.5 lib/incline/date_time_formats.rb