Class: DateTime

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

Instance Method Summary collapse

Instance Method Details

#to_datetimeObject


26
27
28
# File 'lib/extlib/datetime.rb', line 26

def to_datetime
  self
end

#to_timeObject


13
14
15
# File 'lib/extlib/datetime.rb', line 13

def to_time
  Time.parse self.to_s
end