Module: ThirdBase::DateCompatInstanceMethods
- Included in:
- Date
- Defined in:
- lib/third_base/make_compat.rb
Instance Method Summary collapse
-
#asctime ⇒ Object
(also: #ctime)
Returns a formatted string representing the date.
-
#day_fraction ⇒ Object
Returns 0.0, since Date don’t have fractional days.
Instance Method Details
#asctime ⇒ Object Also known as: ctime
Returns a formatted string representing the date.
308 309 310 |
# File 'lib/third_base/make_compat.rb', line 308 def asctime strftime('%a %b %e 00:00:00 %Y') end |
#day_fraction ⇒ Object
Returns 0.0, since Date don’t have fractional days.
314 315 316 |
# File 'lib/third_base/make_compat.rb', line 314 def day_fraction 0.0 end |