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
Day of Year mode and Milliseconds #540
Comments
I've also opened similar issues/discussions here: easepick/easepick#182 and here: Eonasdan/tempus-dominus#2588 |
Looking into this more, the Custom Buttons seems like a great way to handle the DMY <--> DOY toggle |
I was able to add a DOY mode by adding this in the buttons object:
I have this defined elsewhere:
|
@umer936 it is better to use 'onRender' option once and inside of it check for condition to decide what to render. As for milliseconds, there is no proper way to control them now ( I don't now if I will ever add such feature, should think of it. |
Currently we use https://trentrichardson.com/examples/timepicker/#tp-examples . However, it is unmaintained and relies on jquery and jquery-ui, both of which I would like to drop.
In searching, I have been unable to find datetimepickers that support doy and/or millisecond support.
Day of Year
trent richardson's timepicker supports doy through the flag 'DDD', like https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table , which this follows. trent richardson's parses the timestamp in and out of DOY when clicking the day in the selector. Optimal behavior would be an option that allows the selector to switch to a DOY view mode showing the doy number in the day boxes, but having it like this image is sufficient.
Millisecond support
our various sensors can have pretty fine-grained data fidelity, so millisecond support is necessary for us (smaller would be even better). This same issue is holding back phpmyadmin Timepicker (jQuery-UI) phpmyadmin/phpmyadmin#17604 as well. This is also defined by the format 'HH:mm:ss.S+' from the unicode standard.
Thank you for the work on the project! 😃 It looks really nice.
I'd love to be able to use it. Based on what y'all think is best, I can definitely work on these (looks like
datetimePicker.js
is where to add? unless y'all would want it separated out).The text was updated successfully, but these errors were encountered: