function opigno_lrs_stats_start_of_current_month in Opigno TinCan API 7
Get start of current month
Return value
DateTime
2 calls to opigno_lrs_stats_start_of_current_month()
- 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_month_statements in modules/
opigno_tincan_api_stats/ includes/ model/ filters.inc - Filter statements that happened this month
File
- modules/
opigno_tincan_api_stats/ includes/ model/ helpers.inc, line 35 - Implements helper functions
Code
function opigno_lrs_stats_start_of_current_month() {
$date = new DateTime();
return $date
->modify('midnight first day of this month');
}