Class Date
In: lib/facet/date/to_date.rb
lib/facet/date/days_in_month.rb
lib/facet/date/to_s.rb
lib/facet/date/stamp.rb
lib/facet/date/to_time.rb
lib/facet/date/days_of_month.rb
Parent: Object

Methods

Public Instance methods

Returns the number of days in the date’s month.

  require 'facet/date/days_in_month'

  Date.new(2004,2).days_in_month #=> 28
stamp(format = nil)

Alias for to_s

To be able to keep Dates and Times interchangeable on conversions.

[Validate]