function Quant::set_days in Quant 7
Determine the amount of days in the period
1 call to Quant::set_days()
- Quant::execute in plugins/
Quant.inc - Execute the quant for a given period
File
- plugins/
Quant.inc, line 50
Class
- Quant
- Quant class
Code
function set_days() {
if (is_numeric($this->period)) {
$this->days = ceil((time() - $this->period) / 86400);
}
else {
if (is_array($this->period)) {
$this->days = ceil(($this->period[1] - $this->period[0]) / 86400);
}
}
}