-
-
Notifications
You must be signed in to change notification settings - Fork 530
Open
Labels
enhancementNew feature or requestNew feature or request
Description
What is the problem this feature would solve?
Currently, the syntax for passing a duration somewhere is non standard. Either you do something like '{n} {unit}' or pass the milliseconds (see DurationInput). This is not ideal, since the syntax differs alot from what's built into modern browsers, making onboarding and code reuse more difficult.
It also makes it hard to describe something spanning multiple units, like 1 hours 10 minutes for example. This introduces possible buggy conversion while converting this duration to minutes before passing it to effect.
What is the feature you are proposing to solve the problem?
Make Temporal.Duration an input for Effect.Duration. This would than allow the following code:
```Schedule.fixed(Temporal.Duration.from({hours: 1, minutes: 10 })`
What alternatives have you considered?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request