end_of_year() Instance Public methods Returns a new date/time representing the end of the year. DateTime objects will have a time set to 23:59:59. at_end_of_year
end_of_week(start_day = Date.beginning_of_week) Instance Public methods Returns a new date/time representing the end of this week on the given day. Week is assumed to start on start_day, default is Date.beginning_of_week or config.beginning_of_week when set. DateTime objects have their time set to 23:59:59. at_end_of_week
end_of_quarter() Instance Public methods Returns a new date/time at the end of the quarter. Example: 31st March, 30th June, 30th September. DateTime objects will have a time set to 23:59:59. at_end_of_quarter
end_of_month() Instance Public methods Returns a new date/time representing the end of the month. DateTime objects will have a time set to 23:59:59. at_end_of_month
days_to_week_start(start_day = Date.beginning_of_week) Instance Public methods Returns the number of days to the start of the week on the given day. Week is assumed to start on start_day, default is Date.beginning_of_week or config.beginning_of_week when set.
days_since(days) Instance Public methods Returns a new date/time the specified number of days in the future.
days_ago(days) Instance Public methods Returns a new date/time the specified number of days ago.
beginning_of_year() Instance Public methods Return a new date/time at the beginning of the year. Example: 1st January. DateTime objects will have a time set to 0:00. at_beginning_of_year
beginning_of_week(start_day = Date.beginning_of_week) Instance Public methods Returns a new date/time representing the start of this week on the given day. Week is assumed to start on start_day, default is Date.beginning_of_week or config.beginning_of_week when set. DateTime objects have their time set to 0:00. at_beginning_of_week
beginning_of_quarter() Instance Public methods Returns a new date/time at the start of the quarter. Example: 1st January, 1st July, 1st October. DateTime objects will have a time set to 0:00. at_beginning_of_quarter
Page 105 of 2275