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

Rounding settings #69

Open
hryamzik opened this issue Jun 14, 2018 · 1 comment
Open

Rounding settings #69

hryamzik opened this issue Jun 14, 2018 · 1 comment

Comments

@hryamzik
Copy link

This lets you take a time.Time and spit it out in relative terms. For example, 12 seconds ago or 3 days from now.
©

I have some issues with this format, in most cases difference between 1,5 days and 1 or 2 days is significant for me but there's no way to tune this format.

Duration way (timeA.Sub(timeB).Truncate(time.Second)) doesn't look good too: 2880h7m59s.

It would be awesome to be able to set minimal detailisation to print.

@gotwarlost
Copy link

Specifically, the conversion is confusing for low hours, for example. If there is a time that is 1h59m in the future, this shows up as 1 hour from now instead of 2 hours from now which would be more accurate.

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