iamkun / iamkun/dayjs

fromNow with more details

Open
#1,246 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

Hi, I don't know where to ask this question, really. I am sorry if this is the wrong place.
My problem is the following:

I need to get the number of years, months, days and hours for a future event. fromNow only shows me months. E.g: an event is occuring on 03.02.2021. Given the current date is 2.12.2020 7PM, I would like it to show me something like: in 3 months, 1 day, 5 hours.

How can I achieve this?

Thank you!

Contributor guide

Open the contributing guide

Research direction

Start by reading the existing fromNow API and its relative-time behavior. The issue does not name an implementation file, test, or acceptance criteria; clarify whether multi-unit output is intended and define the expected wording before identifying the relevant code and tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.