You are here

private function Date::_zone in PersianTools 7

set all properties related to time zone

@access private

Return value

void

2 calls to Date::_zone()
Date::mktime in includes/Date.php
creates timestamp depending on the Persian time parameters
Date::_date in includes/Date.php
sets the full date data Y;M;D;H;I;S in various class attributes

File

includes/Date.php, line 451

Class

Date

Namespace

Shamsi

Code

private function _zone() {
  $this->_timeZone = \date_default_timezone_get();
  $this->_timeZoneAbb = \date('T', $this->_timestamp);
  $this->_DLS = \date('I', $this->_timestamp);
  $this->_GMTDiff = \date('O', $this->_timestamp);
  $this->_GMTDiffC = \date('P', $this->_timestamp);
  $this->_timezoneOffset = \date('Z', $this->_timestamp);
}