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

Millisecond support #1361

Open
ollierob opened this issue May 6, 2018 · 10 comments
Open

Millisecond support #1361

ollierob opened this issue May 6, 2018 · 10 comments

Comments

@ollierob
Copy link

ollierob commented May 6, 2018

I would like to be able to a) specify milliseconds through the editor, b) allow manual input of milliseconds.

Given the below example, a millisecond editor is not rendered for the first scenario, and the milliseconds are reset to 0 on focus-lost for the second scenario.

flatpickr("#date", {
  enableTime: true,
  enableSeconds: true,
  allowInput: true,
  dateFormat: 'Z'
});

See https://jsfiddle.net/ejazs6v1/

v 4.4.6 on Chrome

Thanks!

@sathomps
Copy link

Agreed. This is the only date-time picker I've found that doesn't suck and with Angular support. I would add that along with milliseconds, it'd be nice to have an option to supply ranges (last 5 minutes, last 24 hours, etc)

@rockResolve
Copy link

I too needed this. Unfortunately the plugin requires some internal changes to make the formatDate & parseDate tokens public. PR coming.

@Aditya-ds-1806
Copy link

What is the status of this?

@mvorisek
Copy link

mvorisek commented Mar 6, 2022

as discussed here #2520 (comment)

there is a need for a fractional seconds support, preferably with configureable precision

some DB vendors allows microseconds, some even nanoseconds, so at least 9 digits should be supported

@mvorisek
Copy link

mvorisek commented Feb 7, 2023

image

adding fractional seconds support should not be as complicated as seconds are already supported, anyone here with JS skills?

@georgfaust
Copy link

+1 for milliseconds

@vipertecpro
Copy link

I asked for this feature on Sun, Aug 8, 2021, 10:49 PM. Finally it's here, thx alot for hard work and efforts.

@Aditya-ds-1806
Copy link

@mvorisek @chmln Can I give this a shot?

@mvorisek
Copy link

mvorisek commented Feb 8, 2023

@Aditya-ds-1806 yes 👍

@Aditya-ds-1806
Copy link

Sorry for the delay, I have been a little busy with college lately. Would appreciate feedback on this PR I just raised #2870
@mvorisek @chmln

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

7 participants