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

Convert a date into length of time #114

Closed
jifonthespoon opened this issue Feb 20, 2025 · 0 comments
Closed

Convert a date into length of time #114

jifonthespoon opened this issue Feb 20, 2025 · 0 comments
Assignees

Comments

@jifonthespoon
Copy link
Contributor

Given a Date object, convert it into a length of time ago from now. The length of time should be floored.

For example, a date from 2024-2-17 14:19:17 and today's date of 2024-2-20 13:45:54 would say "2d ago", but
2024-2-17 14:19:17 and today's date of 2024-2-20 16:45:54 would say "3d ago".

We'll do #min ago, #h ago, #d ago, #m ago, and #y ago.

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

3 participants