(PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1)
Introduction
Synopsis de la classe
class
IntlTimeZone
{
/* Constantes */
public
const
int
DISPLAY_SHORT;
public
const
int
DISPLAY_LONG;
public
const
int
DISPLAY_SHORT_GENERIC;
public
const
int
DISPLAY_LONG_GENERIC;
public
const
int
DISPLAY_SHORT_GMT;
public
const
int
DISPLAY_LONG_GMT;
public
const
int
DISPLAY_SHORT_COMMONLY_USED;
public
const
int
DISPLAY_GENERIC_LOCATION;
public
const
int
TYPE_ANY;
public
const
int
TYPE_CANONICAL;
public
const
int
TYPE_CANONICAL_LOCATION;
/* Méthodes */
private __construct()
public static countEquivalentIDs(string
$timezoneId): int|false
public static
createDefault(): IntlTimeZone
public static createEnumeration(IntlTimeZone|string|int|float|null
$countryOrRawOffset =
null): IntlIterator|false
public static createTimeZone(string
$timezoneId): ?IntlTimeZone
public static createTimeZoneIDEnumeration(int
$type, ?string
$region =
null, ?int
$rawOffset =
null): IntlIterator|false
public static fromDateTimeZone(DateTimeZone
$timezone): ?IntlTimeZone
public static getCanonicalID(string
$timezoneId, bool
&$isSystemId =
null): string|false
public getDisplayName(bool
$dst =
false, int
$style = IntlTimeZone::DISPLAY_LONG, ?string
$locale =
null): string|false
public
getDSTSavings(): int
public static getEquivalentID(string
$timezoneId, int
$offset): string|false
public
getErrorCode(): int|false
public
getErrorMessage(): string|false
public static
getGMT(): IntlTimeZone
public
getID(): string|false
public static getIDForWindowsID(string
$timezoneId, ?string
$region =
null): string|false
public getOffset(
float
$timestamp,
bool
$local,
int
&$rawOffset,
int
&$dstOffset): bool
public
getRawOffset(): int
public static getRegion(string
$timezoneId): string|false
public static
getTZDataVersion(): string|false
public static
getUnknown(): IntlTimeZone
public static getWindowsID(string
$timezoneId): string|false
public hasSameRules(IntlTimeZone
$other): bool
public
toDateTimeZone(): DateTimeZone|false
public
useDaylightTime(): bool
}
Constantes pré-définies
IntlTimeZone::DISPLAY_SHORT
-
IntlTimeZone::DISPLAY_LONG
-
IntlTimeZone::DISPLAY_SHORT_GENERIC
-
IntlTimeZone::DISPLAY_LONG_GENERIC
-
IntlTimeZone::DISPLAY_SHORT_GMT
-
IntlTimeZone::DISPLAY_LONG_GMT
-
IntlTimeZone::DISPLAY_SHORT_COMMONLY_USED
-
IntlTimeZone::DISPLAY_GENERIC_LOCATION
-
IntlTimeZone::TYPE_ANY
-
IntlTimeZone::TYPE_CANONICAL
-
IntlTimeZone::TYPE_CANONICAL_LOCATION
-
Sommaire
- IntlTimeZone::__construct — Private constructor to disallow direct instantiation
- IntlTimeZone::countEquivalentIDs — Récupère le nombre d'IDs dans le groupe d'équivalence qui inclut l'ID fourni
- IntlTimeZone::createDefault — Crée une nouvelle copie du fuseau horaire par défaut pour cet hôte
- IntlTimeZone::createEnumeration — Récupère une énumération d'IDs de fuseau horaire associés avec le pays fourni
- IntlTimeZone::createTimeZone — Crée un objet de fuseau horaire pour l'ID fourni
- IntlTimeZone::createTimeZoneIDEnumeration — Get an enumeration over system time zone IDs with the given filter conditions
- IntlTimeZone::fromDateTimeZone — Crée un objet fuseau horaire depuis DateTimeZone
- IntlTimeZone::getCanonicalID — Récupère l'identifiant du fuseau horaire système ou l'identifiant normalisé du fuseau horaire personnalisé pour l'ID du fuseau horaire fourni
- IntlTimeZone::getDisplayName — Récupère un nom du fuseau horaire aux fins de présentation à l'utilisateur
- IntlTimeZone::getDSTSavings — Récupère la durée à ajouter à l'heure locale pour récupérer l'heure murale locale
- IntlTimeZone::getEquivalentID — Récupère un identifiant d'un groupe d'équivalence qui inclut l'identifiant fourni
- IntlTimeZone::getErrorCode — Récupère le code de la dernière erreur survenue sur l'objet
- IntlTimeZone::getErrorMessage — Récupère le message de la dernière erreur survenue sur l'objet
- IntlTimeZone::getGMT — Crée un fuseau horaire GMT (UTC)
- IntlTimeZone::getID — Récupère l'ID d'un fuseau horaire
- IntlTimeZone::getIDForWindowsID — Translate a Windows timezone into a system timezone
- IntlTimeZone::getOffset — Récupère le fuseau horaire brute, et la position GMT
pour un moment dans le temps donné
- IntlTimeZone::getRawOffset — Récupère la position brute GMT (avant de prendre en compte
l'heure d'été)
- IntlTimeZone::getRegion — Get the region code associated with the given system time zone ID
- IntlTimeZone::getTZDataVersion — Récupère la version du fuseau horaire actuellement utilisé par ICU
- IntlTimeZone::getUnknown — Get the "unknown" time zone
- IntlTimeZone::getWindowsID — Translate a system timezone into a Windows timezone
- IntlTimeZone::hasSameRules — Vérifie si cette zone a les mêmes règles qu'une autre
- IntlTimeZone::toDateTimeZone — Convertit un objet DateTimeZone
- IntlTimeZone::useDaylightTime — Vérifie si ce fuseau horaire utilise l'heure d'étét