Class: DateTime
- Inherits:
-
Object
- Object
- DateTime
- Defined in:
- lib/astro-algo.rb
Instance Method Summary collapse
-
#to_date ⇒ Object
Truncate date/time to date.
-
#to_utc ⇒ Object
Adjust dynamical time to UTC.
Instance Method Details
#to_date ⇒ Object
Truncate date/time to date. Returns a Date object for the given DateTime.
98 99 100 |
# File 'lib/astro-algo.rb', line 98 def to_date Date.new(year, month, day) end |