Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fuzzy time #2

Open
khromov opened this issue Jul 11, 2023 · 2 comments
Open

Fuzzy time #2

khromov opened this issue Jul 11, 2023 · 2 comments

Comments

@khromov
Copy link

khromov commented Jul 11, 2023

Hi! Would it be possible to add just a tiny bit of "fuzzy" time display as an option. For my use case I'm server rendering the timestamps so instead of saying "12 seconds ago" without updating I'd like anything under 1-2 minutes to say just now for example. Perhaps if this is outside the scope of the library you could pass a custom formatting function that could optionally override the default display?

@CaptainCodeman
Copy link
Owner

It's probably doable, I imagine an option to override any time within a certain threshold to be "now" would do it, and that threshold would default to 0 to get normal (current) behavior.

@CaptainCodeman
Copy link
Owner

You could do that in the calling code as well of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants