iamkun / iamkun/dayjs

Duration format result for SSS

Open
#1,665 1 comment 2 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 (see #1521 all issues aren't close !)**
When use duration format for an ISO8601, result it's not as expected :
myDuration = dayjs.duration('PT3M39.096S')
myDuration.format("SSS") => "undefined"

**Expected behavior**
myDuration.format("SSS") => "096"

**Information**

- Day.js Version [1.10.7]
- OS: [Windows]
- Browser [all]

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.