Class: DateTime

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

Instance Method Summary collapse

Instance Method Details

#to_timeObject

Transform a DateTime to a Time



29
30
31
# File 'lib/utilities.rb', line 29

def to_time
  Time.parse(self.to_s)
end