tidyverse / hms

A simple class for storing time-of-day values
https://hms.tidyverse.org/
Other
138 stars 25 forks source link

Change display precision #75

Closed statquant closed 3 years ago

statquant commented 5 years ago

Hello, is it possible to modify globally the display format of hms ? I'd like to show nanosecond resolution. Regards

krlmlr commented 4 years ago

Thanks. What output format do you suggest? How many significant digits do you require in your use case?

statquant commented 4 years ago

Hello, maybe the easiest would be to have a global options("hms.display_format"). For my usecase I require nanoseconds 01:23:45.000000001 This being said it could also be an attribute which have advantages of allowing different display but a lot more work I would imagine. Regards

statquant commented 3 years ago

nanotime already provide all the required features and more.

github-actions[bot] commented 2 years ago

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.