Class: DateTime
- Inherits:
-
Object
- Object
- DateTime
- Defined in:
- lib/utilities.rb
Instance Method Summary collapse
-
#to_time ⇒ Object
Transform a DateTime to a Time.
Instance Method Details
#to_time ⇒ Object
Transform a DateTime to a Time
29 30 31 |
# File 'lib/utilities.rb', line 29 def to_time Time.parse(self.to_s) end |