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.3.14 lib/incline/date_time_formats.rb
incline-0.3.13 lib/incline/date_time_formats.rb
incline-0.3.12 lib/incline/date_time_formats.rb
incline-0.3.11 lib/incline/date_time_formats.rb
incline-0.3.10 lib/incline/date_time_formats.rb
incline-0.3.9 lib/incline/date_time_formats.rb
incline-0.3.8 lib/incline/date_time_formats.rb
incline-0.3.7 lib/incline/date_time_formats.rb
incline-0.3.6 lib/incline/date_time_formats.rb
incline-0.3.5 lib/incline/date_time_formats.rb
incline-0.3.4 lib/incline/date_time_formats.rb
incline-0.3.3 lib/incline/date_time_formats.rb
incline-0.3.2 lib/incline/date_time_formats.rb
incline-0.3.1 lib/incline/date_time_formats.rb
incline-0.3.0 lib/incline/date_time_formats.rb
incline-0.2.36 lib/incline/date_time_formats.rb
incline-0.2.35 lib/incline/date_time_formats.rb
incline-0.2.34 lib/incline/date_time_formats.rb
incline-0.2.28 lib/incline/date_time_formats.rb
incline-0.2.27 lib/incline/date_time_formats.rb