Skip to content

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