function _uc_reports_end_interval in Ubercart 6.2
Same name and namespace in other branches
- 5 uc_reports/uc_reports.module \_uc_reports_end_interval()
Given a timestamp and a length of time, returns the offset timestamp.
Parameters
$time: A UNIX timestamp.
$interval: The text representing the amount of time (e.g. 'day', 'week').
Return value
The offset UNIX timestamp.
1 call to _uc_reports_end_interval()
- _uc_reports_subreport_intervals in uc_reports/
uc_reports.module - Returns a list of timespans for subreports over that report's time span.
File
- uc_reports/
uc_reports.module, line 387 - Displays reports on sales, customers, and products to store admin
Code
function _uc_reports_end_interval($time, $interval = 'month') {
if (empty($time)) {
$time = time();
}
return strtotime('+1 ' . $interval, $time) - 1;
}