Method: JustTime#to_time
- Defined in:
- lib/just_time.rb
#to_time(date = Date.today) ⇒ Object
If you want to turn a JustTime into a Time, you might want to supply a date.
94 95 96 |
# File 'lib/just_time.rb', line 94 def to_time(date=Date.today) Time.new(date.year, date.month, date.day, hours, minutes, seconds) end |