|
static | setTimeZone ($timezone) |
| Set the Default Timezone used for date/time conversions. More...
|
|
static | getTimeZone () |
| Return the Default Timezone used for date/time conversions. More...
|
|
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. More...
|
|
Definition at line 8 of file TimeZone.php.
◆ getTimeZone()
static PhpOffice\PhpSpreadsheet\Shared\TimeZone::getTimeZone |
( |
| ) |
|
|
static |
Return the Default Timezone used for date/time conversions.
- Returns
- string Timezone (e.g. 'Europe/London')
Definition at line 52 of file TimeZone.php.
54 return self::$timezone;
◆ getTimeZoneAdjustment()
static PhpOffice\PhpSpreadsheet\Shared\TimeZone::getTimeZoneAdjustment |
( |
|
$timezone, |
|
|
|
$timestamp |
|
) |
| |
|
static |
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 |
float | int | $timestamp | PHP date/time value |
- Returns
- int Number of seconds for timezone adjustment
Definition at line 66 of file TimeZone.php.
References PhpOffice\PhpSpreadsheet\Shared\TimeZone\$timezone.
69 $dtobj = Date::dateTimeFromTimestamp(
"$timestamp");
75 return $dtobj->getOffset();
◆ setTimeZone()
static PhpOffice\PhpSpreadsheet\Shared\TimeZone::setTimeZone |
( |
|
$timezone | ) |
|
|
static |
◆ validateTimeZone()
static PhpOffice\PhpSpreadsheet\Shared\TimeZone::validateTimeZone |
( |
|
$timezone | ) |
|
|
staticprivate |
◆ $timezone
PhpOffice\PhpSpreadsheet\Shared\TimeZone::$timezone = 'UTC' |
|
staticprotected |
The documentation for this class was generated from the following file:
- libs/composer/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/TimeZone.php