Class: Time

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

Instance Method Summary collapse

Instance Method Details

#to_datetimeObject

Transform a Time to a DateTime



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

def to_datetime
  DateTime.parse(self.to_s)
end