\PHPExcel_Shared_TimeZone

PHPExcel_Shared_TimeZone

Summary

Methods
Properties
Constants
_validateTimeZone()
setTimeZone()
getTimeZone()
getTimeZoneAdjustment()
No public properties found
No constants found
No protected methods found
$_timezone
N/A
_getTimezoneTransitions()
No private properties found
N/A

Properties

$_timezone

$_timezone : 

Type

Methods

_validateTimeZone()

_validateTimeZone(string  $timezone) : boolean

Validate a Timezone name

Parameters

string $timezone

Time zone (e.g. 'Europe/London')

Returns

boolean —

Success or failure

setTimeZone()

setTimeZone(string  $timezone) : boolean

Set the Default Timezone used for date/time conversions

Parameters

string $timezone

Time zone (e.g. 'Europe/London')

Returns

boolean —

Success or failure

getTimeZone()

getTimeZone() : string

Return the Default Timezone used for date/time conversions

Returns

string —

Timezone (e.g. 'Europe/London')

getTimeZoneAdjustment()

getTimeZoneAdjustment(string  $timezone, integer  $timestamp) : integer

Return the Timezone offset used for date/time conversions to/from UST This requires both the timezone and the calculated date/time to allow for local DST

Parameters

string $timezone

The timezone for finding the adjustment to UST

integer $timestamp

PHP date/time value

Throws

\PHPExcel_Exception

Returns

integer —

Number of seconds for timezone adjustment

_getTimezoneTransitions()

_getTimezoneTransitions(\DateTimeZone  $objTimezone, integer  $timestamp) : array

Return the Timezone transition for the specified timezone and timestamp

Parameters

\DateTimeZone $objTimezone

The timezone for finding the transitions

integer $timestamp

PHP date/time value for finding the current transition

Returns

array —

The current transition details