La clase IntlTimeZone

(PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1)

Introducción

Sinopsis de la Clase

class IntlTimeZone {
/* Constantes */
/* Métodos */
public static countEquivalentIDs(string $timezoneId): int|false
intltz_count_equivalent_ids(string $timezoneId): int|false
public static createDefault(): IntlTimeZone
intltz_create_default(): IntlTimeZone
public static createEnumeration(IntlTimeZone|string|int|float|null $countryOrRawOffset = null): IntlIterator|false
intltz_create_enumeration(IntlTimeZone|string|int|float|null $countryOrRawOffset = null): IntlIterator|false
public static createTimeZone(string $timezoneId): ?IntlTimeZone
intltz_create_time_zone(string $timezoneId): ?IntlTimeZone
public static createTimeZoneIDEnumeration(int $type, ?string $region = null, ?int $rawOffset = null): IntlIterator|false
intltz_create_time_zone_id_enumeration(int $type, ?string $region = null, ?int $rawOffset = null): IntlIterator|false
public static fromDateTimeZone(DateTimeZone $timezone): ?IntlTimeZone
intltz_from_date_time_zone(DateTimeZone $timezone): ?IntlTimeZone
public static getCanonicalID(string $timezoneId, bool &$isSystemId = null): string|false
intltz_get_canonical_id(string $timezoneId, bool &$isSystemId = null): string|false
public getDisplayName(bool $dst = false, int $style = IntlTimeZone::DISPLAY_LONG, ?string $locale = null): string|false
intltz_get_display_name(
    IntlTimeZone $timezone,
    bool $dst = false,
    int $style = IntlTimeZone::DISPLAY_LONG,
    ?string $locale = null
): string|false
public getDSTSavings(): int
intltz_get_dst_savings(IntlTimeZone $timezone): int
public static getEquivalentID(string $timezoneId, int $offset): string|false
intltz_get_equivalent_id(string $timezoneId, int $offset): string|false
intltz_get_error_code(IntlTimeZone $timezone): int|false
intltz_get_error_message(IntlTimeZone $timezone): string|false
public static getGMT(): IntlTimeZone
intltz_get_gmt(): IntlTimeZone
public getID(): string|false
intltz_get_id(IntlTimeZone $timezone): string|false
public static getIDForWindowsID(string $timezoneId, ?string $region = null): string|false
intltz_get_id_for_windows_id(string $timezoneId, ?string $region = null): string|false
public getOffset(
    float $timestamp,
    bool $local,
    int &$rawOffset,
    int &$dstOffset
): bool
intltz_get_offset(
    IntlTimeZone $timezone,
    float $timestamp,
    bool $local,
    int &$rawOffset,
    int &$dstOffset
): bool
public getRawOffset(): int
intltz_get_raw_offset(IntlTimeZone $timezone): int
public static getRegion(string $timezoneId): string|false
intltz_get_region(string $timezoneId): string|false
public static getTZDataVersion(): string|false
intltz_get_tz_data_version(): string|false
public static getUnknown(): IntlTimeZone
intltz_get_unknown(): IntlTimeZone
public static getWindowsID(string $timezoneId): string|false
intltz_get_windows_id(string $timezoneId): string|false
intltz_has_same_rules(IntlTimeZone $timezone, IntlTimeZone $other): bool
intltz_to_date_time_zone(IntlTimeZone $timezone): DateTimeZone|false
intltz_use_daylight_time(IntlTimeZone $timezone): bool
}

Tabla de contenidos