Class: DateTime

Inherits:
Object
  • Object
show all
Defined in:
lib/validator/date_rule.rb

Overview

DateTime now has a to_time method injected in

Instance Method Summary collapse

Instance Method Details

#to_timeObject



5
6
7
# File 'lib/validator/date_rule.rb', line 5

def to_time
  self.offset == 0 ? ::Time.utc(year, month, day, hour, min, sec) : self
end