github / github/relative-time-element

Precision for what to display

Open
#252 3 comments 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4k
Forks
192
Avg merge
1d 10h
Merged PRs (30d)
5

Description

Hello,

I would like to display some dates relatively to now. However, I want to display it at max days, no weeks, months, years, etc. Is this somehow possible? I only found the precision which works vice versa.
I think it is possible as the docs/cheatsheets in the readme show some things like "in 30 day" but for me this only gives things like "next week" or "next month".

Codepen: https://codepen.io/wulfheart/pen/oNPxVKK

```html

2023-02-28

```

Thank you in advance.

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.