delight-im / delight-im/PHP-Temporal
add a Duration::toDateInterval and Duration::fromDateInterval methods
Open
enhancement
- Dominant language
- PHP
- Stars
- 13
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
For interoperability you should also add the following methods to the Duration class:
- `Duration::toDateInterval`
- `Duration::fromDateInterval`
Contributor guide
No contributing guide indexed for this repository
Research direction
Locate the Duration class in the PHP-Temporal repository and inspect its existing construction and conversion methods, then review PHP's DateInterval API. Define the expected behavior for toDateInterval and fromDateInterval, and consider how the two methods should be verified for interoperability.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100