iamkun / iamkun/dayjs

Duration creation with units is illogical

Open
#2,247 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
48.7k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
A duration created with the default milliseconds allows me to parse or format the duration in other units of time.
Here, 63 minutes, created in milliseconds, can be transformed into the equivalent 1 hour and 3 minutes.
![image](https://user-images.githubusercontent.com/4871064/220972243-a1ca98cd-0e7e-4df5-8856-ce3dcd31b8ec.png)

What is the point of this, though?
![image](https://user-images.githubusercontent.com/4871064/220971971-1b7e9301-cac0-4b2e-a2a8-3d2461075091.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.