You are here

function _ad_report_first_day_of_month in Advertisement 6.3

Same name and namespace in other branches
  1. 5.2 report/ad_report.module \_ad_report_first_day_of_month()
  2. 6.2 report/ad_report.module \_ad_report_first_day_of_month()
  3. 7 report/ad_report.module \_ad_report_first_day_of_month()

Returns a timestamp for the first hour of the first day of the month.

2 calls to _ad_report_first_day_of_month()
ad_report_admin in report/ad_report.module
ad_report_range_form in report/ad_report.module
Return a form for selecting a date range for generating a report.

File

report/ad_report.module, line 517
Provides comprehensive charts and reports about advertising statistics.

Code

function _ad_report_first_day_of_month($time = NULL) {
  if ($time === NULL) {
    $time = time();
  }
  return strtotime(date('Ym010000', $time));
}