IntlCalendar::getRepeatedWallTimeOption

creationdev

Documentation

Conception web microsite
Conception web microsite

1000$ CAD

Référencement web expert
Référencement web expert

750$ CAD

Conception d'application web
Conception d'application web

100$ CAD

Conception web extra
Conception web extra

5000$ CAD

Conception web standard
Conception web standard

2500$ CAD

Référencement web stratégique
Référencement web stratégique

1000$ CAD

Formation référencement web
Formation référencement web

100$ CAD

Référencement web optimisé
Référencement web optimisé

500$ CAD

Référencement web organique
Référencement web organique

300$ CAD

Conception web ecommerce
Conception web ecommerce

2500$ CAD

Méthode

Méthode

IntlCalendar::getRepeatedWallTimeOption

IntlCalendar::getRepeatedWallTimeOption

Page Vue 26 déc. 2018
Page Vue 18 fois

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

IntlCalendar::getRepeatedWallTimeOption — Get behavior for handling repeating wall time

Description

Style orienté objet

public IntlCalendar::getRepeatedWallTimeOption(): int

Style procédural

intlcal_get_repeated_wall_time_option(IntlCalendar $calendar): int

Gets the current strategy for dealing with wall times that are repeated whenever the clock is set back during dailight saving time end transitions. The default value is IntlCalendar::WALLTIME_LAST.

This function requires ICU 4.9 or later.

Liste de paramètres

calendar

Une instance IntlCalendar.

Valeurs de retour

One of the constants IntlCalendar::WALLTIME_FIRST or IntlCalendar::WALLTIME_LAST.

Exemples

Exemple #1 intlcalendar::getRepeatedWallTimeOption()

<?php
ini_set('date.timezone', 'Europe/Lisbon');
ini_set('intl.default_locale', 'en_US');
ini_set('intl.error_level', E_WARNING);

//On October 27th at 0200, the clock goes back 1 hour and from GMT+01 to GMT+00
$cal = new IntlGregorianCalendar(2013, 9 /* October */, 27, 1, 30);

var_dump($cal->getRepeatedWalltimeOption()); // 0 WALLTIME_LAST

$formatter = IntlDateFormatter::create(
NULL,
IntlDateFormatter::FULL,
IntlDateFormatter::FULL,
'UTC'
);
var_dump($formatter->format($cal->getTime() / 1000.));

$cal->setRepeatedWalltimeOption(IntlCalendar::WALLTIME_FIRST);
var_dump($cal->getRepeatedWalltimeOption()); // 1 WALLTIME_FIRST
$cal->set(IntlCalendar::FIELD_HOUR_OF_DAY, 1);

var_dump($formatter->format($cal->getTime() / 1000.));

L'exemple ci-dessus va afficher :

int(0)
string(42) "Sunday, October 27, 2013 at 1:30:00 AM GMT"
int(1)
string(43) "Sunday, October 27, 2013 at 12:30:00 AM GMT"

Voir aussi


Source : http://www.php.net/
Ref : methode-intlcalendar::getrepeatedwalltimeoption.php




Contact

Contact

Veuillez saisir les infos dans le formulaire d'identification
suivant pour concevoir et référencer votre site.









Veuillez saisir votre message.

Carte d'affaires

Affichage de la carte d'affaires recto/verso.

Carte d'affaires recto
Carte d'affaires verso

Partagez

Partagez

Discussion ayant comme sujet la page IntlCalendar::getRepeatedWallTimeOption.

©2025 creationdev -  F.A.Q. -  Soutien -  Haut de page
THÈMES: