Module: ThirdBase::DateCompatInstanceMethods

Included in:
Date
Defined in:
lib/third_base/make_compat.rb

Instance Method Summary collapse

Instance Method Details

#asctimeObject 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_fractionObject

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