class PHPExcel_Shared_TimeZone

PHPExcelSharedTimeZone

Methods

static boolean
_validateTimeZone(string $timezone)

Validate a Timezone name

static boolean
setTimeZone(string $timezone)

Set the Default Timezone used for date/time conversions

static string
getTimeZone()

Return the Default Timezone used for date/time conversions

static 
getTimeZoneAdjustment($timezone, $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

Details

at line 62
static boolean _validateTimeZone(string $timezone)

Validate a Timezone name

Parameters

string $timezone Time zone (e.g. 'Europe/London')

Return Value

boolean Success or failure

at line 76
static boolean setTimeZone(string $timezone)

Set the Default Timezone used for date/time conversions

Parameters

string $timezone Time zone (e.g. 'Europe/London')

Return Value

boolean Success or failure

at line 91
static string getTimeZone()

Return the Default Timezone used for date/time conversions

Return Value

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

at line 130
static getTimeZoneAdjustment($timezone, $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
$timestamp