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

Textual representation of timedeltas #158

Open
ChristianGeng opened this issue Sep 9, 2024 · 1 comment
Open

Textual representation of timedeltas #158

ChristianGeng opened this issue Sep 9, 2024 · 1 comment

Comments

@ChristianGeng
Copy link
Member

In other projects, we have an as I find unfortunate way to render timedeltas textually, or example here.

Would it make sense to have a function that converts this into a representation that is better for humans like for example the one here?

Possibly this is already implemented somewhere but I couldn't locate it.

@hagenw
Copy link
Member

hagenw commented Sep 9, 2024

Possibly this is already implemented somewhere but I couldn't locate it.

No, we have not implemented something like this.
So far, I was ok with 0 days 02:00:09.703062500 as it is easy to see how many days, hours, minutes, and seconds we have (at least compared when representing it just as seconds which would be 7209.703062500 in this case.

In the example you show, we don't need the high precision after, e.g. 0 days 02:00:10 would do, but when looking at start and end values of segments, this might be difference.

But feel free to propose something that you think would be better.

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