Skip to content

[Sync-En] ext/date: document that DateInterval addition depends on how the interval was created - #3501

Open
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:sync-en/3492-dateinterval
Open

[Sync-En] ext/date: document that DateInterval addition depends on how the interval was created#3501
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:sync-en/3492-dateinterval

Conversation

@lacatoire

Copy link
Copy Markdown
Member

Translation of php/doc-en#5830 (commit 18c0977d5e): the time part of an interval is applied as elapsed time when it comes from DateInterval::__construct, but increments component values when it comes from DateInterval::createFromDateString or DateTimeInterface::diff. Adds the new Date/Time Arithmetic example, the rule on the DateInterval class page, the note where equality was claimed, and the see-also links. EN-Revision updated.

Also picks up two older doc-en commits on dateinterval.xml (skeleton comments and empty xi:fallback removal), and fixes a missing "minutes" in the DateTimeImmutable::sub refpurpose and a reversed modality in examples.xml along the way.

Fixes: #3492

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.

[Sync EN] Document that DateInterval addition depends on how the interval was created (#5830)

1 participant