IntlCalendar::getRepeatedWallTimeOption

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

IntlCalendar::getRepeatedWallTimeOption โ€” ็นฐใ‚Š่ฟ”ใ•ใ‚Œใ‚‹ๅฎŸๆ™‚้–“ใ‚’ๆ‰ฑใ†้š›ใฎๆŒฏใ‚‹่ˆžใ„ใ‚’ๅ–ๅพ—ใ™ใ‚‹

่ชฌๆ˜Ž

ใ‚ชใƒ–ใ‚ธใ‚งใ‚ฏใƒˆๆŒ‡ๅ‘ๅž‹

public function IntlCalendar::getRepeatedWallTimeOption(): int

ๆ‰‹็ถšใๅž‹

function intlcal_get_repeated_wall_time_option(IntlCalendar $calendar): int

ๅคๆ™‚้–“ใŒ็ต‚ใ‚ใ‚Šใ€ ใ€Œๆ™‚่จˆใŒๅทปใๆˆปใ•ใ‚Œใ‚‹ๆ™‚ใซ็นฐใ‚Š่ฟ”ใ•ใ‚Œใ‚‹ๅฎŸๆ™‚้–“ใ€ใ‚’ใฉใ†ๆ‰ฑใ†ใ‹ใฎๆˆฆ็•ฅใ‚’ๅ–ๅพ—ใ—ใพใ™ใ€‚ ใƒ‡ใƒ•ใ‚ฉใƒซใƒˆๅ€คใฏ IntlCalendar::WALLTIME_LAST ใงใ™ใ€‚

ใ“ใฎ้–ขๆ•ฐใ‚’ไฝฟใ†ใซใฏใ€ICU 4.9 ไปฅ้™ใŒๅฟ…่ฆใงใ™ใ€‚

ใƒ‘ใƒฉใƒกใƒผใ‚ฟ

calendar
IntlCalendar ใ‚ฏใƒฉใ‚นใฎใ‚คใƒณใ‚นใ‚ฟใƒณใ‚นใ€‚

ๆˆปใ‚Šๅ€ค

IntlCalendar::WALLTIME_FIRST ใพใŸใฏ IntlCalendar::WALLTIME_LAST ใฎใฉใกใ‚‰ใ‹ใ‚’่ฟ”ใ—ใพใ™ใ€‚

ไพ‹

ไพ‹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.));

ไธŠใฎไพ‹ใฎๅ‡บๅŠ›ใฏไปฅไธ‹ใจใชใ‚Šใพใ™ใ€‚

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"

ๅ‚่€ƒ

  • IntlCalendar::getSkippedWallTimeOption() - ใ‚นใ‚ญใƒƒใƒ—ใ•ใ‚ŒใŸๅฎŸๆ™‚้–“ใ‚’ๆ‰ฑใ†้š›ใฎๆŒฏใ‚‹่ˆžใ„ใ‚’ๅ–ๅพ—ใ™ใ‚‹
  • IntlCalendar::setSkippedWallTimeOption() - ๆญฃใฎใ‚ฟใ‚คใƒ ใ‚พใƒผใƒณใ‚ชใƒ•ใ‚ปใƒƒใƒˆใ‚’้ฉ็”จใ—ใŸ้š›ใซใ€ใ‚นใ‚ญใƒƒใƒ—ใ•ใ‚Œใ‚‹ๅฎŸๆ™‚้–“ใ‚’ใฉใ†ๆ‰ฑใ†ใ‹ใ‚’่จญๅฎšใ™ใ‚‹
  • IntlCalendar::setRepeatedWallTimeOption() - ่ฒ ใฎใ‚ฟใ‚คใƒ ใ‚พใƒผใƒณใ‚ชใƒ•ใ‚ปใƒƒใƒˆใ‚’้ฉ็”จใ—ใŸ้š›ใซใ€็นฐใ‚Š่ฟ”ใ•ใ‚Œใ‚‹ๅฎŸๆ™‚้–“ใ‚’ใฉใ†ๆ‰ฑใ†ใ‹ใ‚’่จญๅฎšใ™ใ‚‹
๏ผ‹add a note

User Contributed Notes

There are no user contributed notes for this page.