⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Work with DateInterval instances in util.TimeSpan#355

Merged
thekid merged 5 commits intoxp-framework:mainfrom
thekid:feature/dateinterval
Dec 13, 2025
Merged

Work with DateInterval instances in util.TimeSpan#355
thekid merged 5 commits intoxp-framework:mainfrom
thekid:feature/dateinterval

Conversation

@thekid
Copy link
Member

@thekid thekid commented Dec 13, 2025

This pull request adds the ability to use the following as constructor arguments to util.TimeSpan:

Unsupported types or malformed strings will result in a lang.IllegalArgumentException.

use util\TimeSpan;

$span= new TimeSpan('PT2H5M');
$span->format('%y hours and %j minutes'); // 2 hours and 5 minutes

@thekid thekid merged commit 5a835db into xp-framework:main Dec 13, 2025
17 checks passed
@thekid thekid deleted the feature/dateinterval branch December 13, 2025 11:19
@thekid
Copy link
Member Author

thekid commented Dec 13, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant