function opigno_lrs_stats_end_of_current_week in Opigno TinCan API 7
Get end of current week
Return value
DateTime
2 calls to opigno_lrs_stats_end_of_current_week()
- opigno_lrs_stats_dashboard_total_number_of_page_view_json_page in modules/
opigno_tincan_api_stats/ includes/ dashboard/ dashboard.pages.inc - Display total number of page view in json (morris.js format)
- opigno_lrs_stats_filter_current_week_statements in modules/
opigno_tincan_api_stats/ includes/ model/ filters.inc - Filter statements that happened this week
File
- modules/
opigno_tincan_api_stats/ includes/ model/ helpers.inc, line 25 - Implements helper functions
Code
function opigno_lrs_stats_end_of_current_week() {
$date = new DateTime();
return $date
->modify('midnight this week +7 days');
}