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

Support alternative relative formatting of days #97

Open
jakubturcovsky opened this issue Sep 4, 2024 · 2 comments
Open

Support alternative relative formatting of days #97

jakubturcovsky opened this issue Sep 4, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@jakubturcovsky
Copy link

jakubturcovsky commented Sep 4, 2024

It'd be nice if we could get an alternative wording of 1 day ago, in 1 day in HumanReadable.timeAgo() as yesterday and tomorrow, and also be able to format date only, which could return today instead of 0 days ago. The second part could probably be integrated into the HumanReadable.timeAgo() function as a parameter stating the smallest unit that should be used (and maybe also the largest one as a second parameter, why not 🙂 ).

I'm ready to help with the implementation once we agree on a solution.

@jacobras jacobras added the enhancement New feature or request label Sep 6, 2024
@jacobras
Copy link
Owner

jacobras commented Sep 6, 2024

Sounds interesting. Making the smallest unit configurable has been on my planning anyway, this nicely fits. I'll get back to this with some more thoughts.

@jakubturcovsky
Copy link
Author

Hey @jacobras, any new thoughts?

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

No branches or pull requests

2 participants