public function __construct($time, $randomWithinSeconds = null) { $this->date = new DateTime((string) $time); $this->date->setTimeZone(new DateTimeZone('UTC')); $this->randomWithinSeconds = $randomWithinSeconds; }