delight-im / delight-im/PHP-Temporal

add a Duration::toDateInterval and Duration::fromDateInterval methods

Open
#4 2 comments 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.