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

Add fractional seconds support for direct input #2910

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

mvorisek
Copy link

This PR adds fractional seconds support for direct input with nanosecond resolution.

The implementation is inspired by #2870 but:

  • resolution is not limited to milliseconds
  • fractional seconds has no extra formatting token
  • format resolution is controlled by formatSecondsPrecision option, any fixed digits are supported, -1 can be used for dynamic length
  • provides well tested implementation

allowInput (direct input modification) support is well implemented and tested for typical usecases. This PR does not aim to provide UI for setting fractional seconds via flatpickr popup in order to focus on the flatpickr internal implementation. Once this PR is merged, the UI can be easily added.

Related with:

/cc @Aditya-ds-1806 @williamdes @chmln

Sponsored by my own company.

Copy link

@williamdes williamdes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@PercivalFigaro
Copy link

PercivalFigaro commented Jul 17, 2023

Hello and thank you for this improvement!

Any idea when this will be merged? The use of Flatpickr in our project will be made possible only after fractional second support has been added.

@mvorisek @williamdes

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

Successfully merging this pull request may close these issues.

None yet

3 participants