Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
11 | public function __construct($time) |
||
12 | { |
||
13 | $this->seconds = (float) $time; |
||
14 | list($days, $time) = [(int) ($time / 86400), $time % 86400]; |
||
15 | list($hours, $time) = [(int) ($time / 3600), $time % 3600]; |
||
16 | list($minutes, $time) = [(int) ($time / 60), $time % 60]; |
||
17 | $seconds = $time; |
||
18 | parent::__construct("P{$days}DT{$hours}H{$minutes}M{$seconds}S"); |
||
19 | } |
||
20 | |||
32 |