Sha256: 5a8d2f90d6f76d47f23146a16b140acbc0eeb904b6ba236db3055b3d439f0a18

Contents?: true

Size: 270 Bytes

Versions: 19

Compression:

Stored size: 270 Bytes

Contents

VALID_DATES = [
  "2010-04-26",
  "2010-04-26 23:59:00",
  "26/04/2010",
  "2000-08-01 00:00:00 +0900",
  "Aug 21 2000",
  "Thu Nov 29 14:33:20 GMT 2001",
  Time.now,
  Date.today,
  DateTime.now,
  Time.zone.now
]

INVALID_DATES = [
  "invalid",
  nil,
  "",
  "4/26"
]

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
validators-2.8.1 test/support/dates.rb
validators-2.8.0 test/support/dates.rb
validators-2.7.0 test/support/dates.rb
validators-2.6.0 test/support/dates.rb
validators-2.5.4 test/support/dates.rb
validators-2.5.3 spec/support/dates.rb
validators-2.5.2 spec/support/dates.rb
validators-2.5.1 spec/support/dates.rb
validators-2.5.0 spec/support/dates.rb
validators-2.4.2 spec/support/dates.rb
validators-2.4.1 spec/support/dates.rb
validators-2.4.0 spec/support/dates.rb
validators-2.3.0 spec/support/dates.rb
validators-2.2.0 spec/support/dates.rb
validators-2.1.0 spec/support/dates.rb
validators-2.0.0 spec/support/dates.rb
validators-1.0.0 spec/support/dates.rb
validators-0.1.3 spec/support/dates.rb
validators-0.1.2 spec/support/dates.rb