iamkun / iamkun/dayjs

format by milliseconds, 'SS' or 'S' is not work

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

Description

dayjs().format('mm-ss S') -> 08-40 S
dayjs().format('mm-ss SS') -> 08-40 SS
dayjs().format('mm-ss SSS') -> 08-40 047

if format by ‘S’ and 'SS' is not work, why it is in [list of all available parsing tokens ](https://dayjs.gitee.io/docs/en/parse/string-format#list-of-all-available-parsing-tokens)

I'm not sure if it's a bug

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the three dayjs().format('mm-ss S'), 'SS', and 'SSS' examples, then compare their behavior with the linked list of available parsing tokens. Done means the behavior of S and SS is resolved and the documentation or formatting behavior is made consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.