Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class TimeInterval
- {
- public function __construct($seconds){ *** }
- public static function createFromDate($hours = 0, $minutes = 0, $seconds = 0)
- {
- return new self($hours * 60 * 60 + $minutes * 60 + $seconds);
- }
- public function addSeconds($count){ ***** += $count; }
- public function addMinutes($count){ ***** += $count * 60; }
- public function addHours($count){ ***** += $count * 60 * 60; }
- public function getSeconds(){ *** }
- public function getMinutes(){ *** }
- public function getHours(){ *** }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement