module NexusCore::ReportUtils::DateDefinition

Public Instance Methods

end_of_last_month() click to toggle source
# File lib/nexus_core/report_utils.rb, line 16
def end_of_last_month
  Date.today.last_month.end_of_month
end
end_of_last_week() click to toggle source
# File lib/nexus_core/report_utils.rb, line 12
def end_of_last_week
  Date.today.last_week.end_of_week
end
last_week() click to toggle source
# File lib/nexus_core/report_utils.rb, line 8
def last_week
  Date.today.last_week.strftime('%Y%W')
end
starting_last_month() click to toggle source
# File lib/nexus_core/report_utils.rb, line 20
def starting_last_month
  Date.today.last_month.beginning_of_month
end
this_week() click to toggle source
# File lib/nexus_core/report_utils.rb, line 4
def this_week
  Date.today.strftime('%Y%W')
end