Class: Date

Inherits:
Object
  • Object
show all
Defined in:
lib/date_time_extensions.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.beginning_ofObject



23
24
25
# File 'lib/date_time_extensions.rb', line 23

def self.beginning_of
  DateTime.beginning_of.to_date
end

.end_ofObject



27
28
29
# File 'lib/date_time_extensions.rb', line 27

def self.end_of
  DateTime.end_of.to_date
end

Instance Method Details

#time?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/date_time_extensions.rb', line 31

def time?
  false
end

#to_standard_sObject



35
36
37
# File 'lib/date_time_extensions.rb', line 35

def to_standard_s
  strftime( "%B %d, %Y" )
end