Class: DateTime

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

Instance Method Summary collapse

Instance Method Details

#to_timeObject

Transform a DateTime to a Time



3
4
5
# File 'lib/utilities/datetime.rb', line 3

def to_time
  Time.parse(self.to_s)
end