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

[Feat] Add FromNow() Function #108

Closed
KiddoV opened this issue Jul 11, 2023 · 2 comments
Closed

[Feat] Add FromNow() Function #108

KiddoV opened this issue Jul 11, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@KiddoV
Copy link
Contributor

KiddoV commented Jul 11, 2023

I would like to have something like this:
https://gist.github.com/davidrleonard/259fe449b1ec13bf7d87cde567ca0fde

func FromNow(time time.Time) string

The func HowLongAgo(sec int64) string is not quite enough expressions.

@inhere inhere added the enhancement New feature or request label Jul 11, 2023
inhere added a commit that referenced this issue Jul 12, 2023
@inhere
Copy link
Member

inhere commented Jul 12, 2023

added new func: timex.FromNow(t time.Time) string.

Released on version v0.6.11

@KiddoV
Copy link
Contributor Author

KiddoV commented Jul 12, 2023

That was quick. Thanks!

@KiddoV KiddoV closed this as completed Jul 12, 2023
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