Skip to content

datetime を原文の変更に追従 (14ファイル) - #601

Merged
KentarouTakeda merged 1 commit into
php:masterfrom
KentarouTakeda:sync-datetime
Nov 14, 2026
Merged

KentarouTakeda merged 1 commit into
php:masterfrom
KentarouTakeda:sync-datetime

Conversation

@KentarouTakeda

Copy link
Copy Markdown
Collaborator

datetime の 14 ファイルを原文の変更に追従しました。

原文では次の変更がありました。

  • DateTime・DateTimeImmutable の setISODate()・setTime()・setTimestamp()・setTimezone() と DateTimeInterface::getOffset()・getTimezone() に、オブジェクトが正しく初期化されていない場合に DateObjectError がスローされることと、PHP 8.3.0 で Error から DateObjectError に変わったことが追記されました(php/doc-en@506a93c、Document the DateObjectError of the DateTime setters and getters doc-en#6072)
  • DateTime::createFromTimestamp() と DateTimeImmutable::createFromTimestamp() が返すオブジェクトのタイムゾーンは常に UTC オフセット +00:00 で、デフォルトのタイムゾーンは使われないことが追記され、デフォルトのタイムゾーンに変換する例が追加されました(php/doc-en@69ce9dc、Document the timezone of DateTime(Immutable)::createFromTimestamp() doc-en#6074)
  • PHP 8.6 で追加された Time\Duration クラスと Time\TimeException が datetime の目次に加わり、DateInterval のページに Time\Duration への案内が追記されました(php/doc-en@09e39c5、Document the Time/Duration class introduced in PHP 8.6 doc-en#6026)

対象ファイル

reference/datetime/ (14) — book.xml, dateinterval.xml, datetime/createfromtimestamp.xml, datetime/setisodate.xml, datetime/settime.xml, datetime/settimestamp.xml, datetime/settimezone.xml, datetimeimmutable/createfromtimestamp.xml, datetimeimmutable/setisodate.xml, datetimeimmutable/settime.xml, datetimeimmutable/settimestamp.xml, datetimeimmutable/settimezone.xml, datetimeinterface/getoffset.xml, datetimeinterface/gettimezone.xml

@KentarouTakeda
KentarouTakeda merged commit 8d89159 into php:master Nov 14, 2026
2 checks passed
@KentarouTakeda
KentarouTakeda deleted the sync-datetime branch November 14, 2026 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant