Method: DateTime#to_time

Defined in:
lib/extlib/datetime.rb,
lib/extlib/datetime.rb

#to_timeTime

Convert to Time object (for DateTime/Time conversion protocol).

DateTime.now.to_time    #=> Wed Nov 19 20:04:51 -0800 2008

Returns:

  • (Time)

    Time object representing the same moment as receiver



12
# File 'lib/extlib/datetime.rb', line 12

remove_method :to_time