function _download_count_statistics_week_start_date in Download Count 6.2
1 call to _download_count_statistics_week_start_date()
- download_count_statistics_details_page in includes/
download_count_statistics.pages.inc - @file Page callback file for the download_count_statistics module.
File
- includes/
download_count_statistics.pages.inc, line 179 - Page callback file for the download_count_statistics module.
Code
function _download_count_statistics_week_start_date($week, $year, $first = 1, $format = 'F d, Y') {
$week = strtotime('+' . $week . ' weeks', strtotime($year . '0101'));
$month = strtotime('-' . date('w', $week) + $first . ' days', $week);
return date($format, $month);
}