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

Feature request - precision control on time diff formatting #63

Open
ddssff opened this issue Jul 10, 2020 · 1 comment
Open

Feature request - precision control on time diff formatting #63

ddssff opened this issue Jul 10, 2020 · 1 comment

Comments

@ddssff
Copy link

ddssff commented Jul 10, 2020

I'd like to be able to increase the time precision, so we would see things like "36 hours", "90 minutes", etc.

@iustin
Copy link

iustin commented Apr 16, 2023

I second this, or at least, make it more obvious that the value is not precise.

Right now, the output is the same for both of these:

λ> format (diff False) (24*3600)
"a day"
λ> format (diff False) (47*3600)
"a day"

Which is confusing. I'm not sure about whether it should be multi-unit (e.g. a day and 23 hours), or approximate (almost two days), but I think saying 47:59:59 is "a day" is factually wrong. Similar for "a year".

Any thoughts on what would best, or at least acceptable here?

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