Method: Circa::Time#to_time
- Defined in:
- lib/circa/time.rb
#to_time ⇒ DateTime
Get the time as a DateTime
51 52 53 54 55 |
# File 'lib/circa/time.rb', line 51 def to_time parts = [:year, :month, :day, :hour, :minute, :second] args = valid_parts_as_args(parts) ::DateTime.send(:new, *args) end |