How to get precise second(s) in `relativeTime` plugin?
See original GitHub issueDescribe the bug
https://github.com/iamkun/dayjs/blob/dev/src/plugin/relativeTime/index.js#L8
All seconds displays a few seconds
Expected behavior
I want to display 1 second, 2 seconds...
Information
- Day.js Version: 1.8.22
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Time from now
Range Key Sample Output
0 to 44 seconds s a few seconds ago
45 to 89 seconds m a minute ago
90 seconds to 44 minutes...
Read more >Javascript timestamp to relative time - datetime - Stack Overflow
I'm looking for a nice JS snippet to convert a timestamp (e.g. from Twitter API) to a nice user friendly relative time (e.g....
Read more >npm install moment-precise-range-plugin - momentjs.com
The Precise Range plugin, written by Rob Dawson, can be used to display exact, ... 16:05:06"); // 1 year 2 months 3 days...
Read more >Enabling Absolute Date/Time for JIRA issue view | Jira Cloud
JRACLOUD-36246 - User-friendly Relative Time Configuration & Date Time ... by seconds in our filters and so order is more important to us...
Read more >New Plugin: Relative Time with Moment.js - Bubble Forum
Hi All, I have just published my first plugin. ... a text which shows days, hours, and seconds, till arrival of something, in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Looks sweet. 😁
Let me think for a while.
@iamkun How about add a
strictoption forrelativeTimeplugin?I can raise a PR if you’d like to have this feature.