\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(  $timezone, integer  $timestamp) 

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

@param string $timezone The timezone for finding the adjustment to UST

Parameters

$timezone
integer $timestamp

PHP date/time value @return integer Number of seconds for timezone adjustment @throws PHPExcel_Exception

getTimezoneTransitions()

getTimezoneTransitions(  $objTimezone, integer  $timestamp) 

Return the Timezone transition for the specified timezone and timestamp

@param DateTimeZone $objTimezone The timezone for finding the transitions

Parameters

$objTimezone
integer $timestamp

PHP date/time value for finding the current transition @return array The current transition details