Skip to content

gmstrftime の例を doc-en の最新に同期#379

Merged
KentarouTakeda merged 1 commit into
php:masterfrom
wadakatu:sync/gmstrftime-example
May 31, 2026
Merged

gmstrftime の例を doc-en の最新に同期#379
KentarouTakeda merged 1 commit into
php:masterfrom
wadakatu:sync/gmstrftime-example

Conversation

@wadakatu
Copy link
Copy Markdown
Contributor

php/doc-en#5014(commit 6c27f7044c)の取り込みです。

変更内容

reference/datetime/functions/gmstrftime.xml の examples セクションを英語版の最新に追従:

  • ロケール設定を 'en_US' から 'es_ES.UTF-8' に変更
  • date_default_timezone_set('EST') を明示し、strftime(ローカル)と gmstrftime(GMT)の対比を再現可能にした
  • フォーマット指定子を %b(省略月名)から %B(完全月名)に変更し、ロケールの効果をより明確に示した
  • <example> を囲んでいた <para> ラッパーを撤去(英語版に追随)
  • &example.outputs;<screen> ブロックを追加し、PHP 8.1 以降の deprecation 通知を含む実際の出力を表示

EN-Revision

  • 旧: 3a8c3e77df070a046c9d5b56b68926ca2d7e5ee3
  • 新: 6c27f7044c7d42c23685afa916e7d7a44cf2bbb2

検証

php doc-base/configure.php --with-lang=ja --enable-xml-details を実行し、XML バリデーションが通ることを確認しました("All good. Saved .manual.xml")。

php/doc-en#5014 (commit 6c27f7044c) の取り込み。
example のロケールを es_ES.UTF-8 に変更、date_default_timezone_set('EST') を
明示、format を %B に変更してロケールの効果を示し、deprecation 通知を含む
出力を <screen> ブロックで追加した。
Copy link
Copy Markdown
Collaborator

@KentarouTakeda KentarouTakeda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます!

@KentarouTakeda KentarouTakeda merged commit d81f3ba into php:master May 31, 2026
2 checks passed
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.

2 participants