protected function __construct($timestamp, $timezone = 'UTC') { if (!is_int($timestamp)) { throw new Exception("Date is expecting a unix timestamp, got: '{$timestamp}'."); } $this->timezone = $timezone; $this->timestamp = $timestamp; }