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

Day of Year mode and Milliseconds #2588

Closed
umer936 opened this issue Jun 14, 2022 · 2 comments
Closed

Day of Year mode and Milliseconds #2588

umer936 opened this issue Jun 14, 2022 · 2 comments

Comments

@umer936
Copy link

umer936 commented Jun 14, 2022

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.

  1. Day of Year
    trent richardson's timepicker supports doy through the flag 'DDD'. It parses the timestamp in and out of clicking the day in the selector. Not sure how easy/difficult that is to add to this project. 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.

  2. Millisecond support
    our various sensors can have pretty fine-grained data fidelity, so millisecond support is necessary for us (smaller would be even better). I saw this PR Next release date #2385 . I will see what I can do with the https://getdatepicker.com/6/options.html#hooks you have provided.

  3. Sliders
    This doesn't seem to be the intended direction for this project, but I did like the sliders in the trentrichardson timepicker I linked above.

I know this is a lot of functionality I'm asking about. I'm curious to your thoughts on the above. As we use AdminLTE and this project is included in AdminLTE (https://adminlte.io/themes/v3/pages/forms/advanced.html), it would be great if this could match our usecases.

Thanks 😃

@Eonasdan
Copy link
Owner

  1. So the ask is to make Feb 1st show 32? I couldn't find an example from the picker above
  2. Like what I told the php myadmin guys, I don't have the bandwidth to add that level of granularity at this time. The "hook" system was replaced by a more flexible plugin system. It would be difficult to do but you could create a plugin that provided the extra text boxes. If you want it to have a similar look and feel there's several places you'd have to basically replace. Alternatively, you could use the picker down to the seconds and an additional text box(es) for anything beyond that.
  3. I don't have any desire to use sliders for time selction.

@umer936
Copy link
Author

umer936 commented Jul 12, 2022

  1. If it could support showing Feb 1st as "32" would be preferred, but the one from trentrichardson's timepicker shows like this, which works fine

image

2 and 3. I see. Makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

2 participants