26 return in_array(
$timezone, DateTimeZone::listIdentifiers(DateTimeZone::ALL_WITH_BC));
69 $dtobj = Date::dateTimeFromTimestamp(
"$timestamp");
71 throw new PhpSpreadsheetException(
"Invalid timezone $timezone");
73 $dtobj->setTimeZone(
new DateTimeZone(
$timezone));
75 return $dtobj->getOffset();
foreach($mandatory_scripts as $file) $timestamp
An exception for terminatinating execution or to throw for unit testing.
static validateTimeZone($timezone)
Validate a Timezone name.
static setTimeZone($timezone)
Set the Default Timezone used for date/time conversions.
static 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...