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

Support for durationTime to be a datetime instead of just time #423

Open
pjfsilva opened this issue Aug 13, 2015 · 3 comments
Open

Support for durationTime to be a datetime instead of just time #423

pjfsilva opened this issue Aug 13, 2015 · 3 comments

Comments

@pjfsilva
Copy link

Case in point:
I'm using jquery datepicker + jquery-timepicker to set the starting date of a meeting and then I have the end date. I want to show the duration of the meeting so that when it spans several days it still shows a correct duration.

I believe the best way to achieve this is to also support somehow to pass a date/time as a durationTime instead of just the time.

The calculation shouldn't be too hard to do using moment.js...

@pjfsilva
Copy link
Author

By the way, this also applies to the demo "Datepair Plugin Example" where if you select at the start 1 August 1:00AM and at end date 3rd August 5:00AM it calculates the duration as 4hours instead of 2days 4 hours.

@QuentinFchx
Copy link
Contributor

I ran into the same issue, I will try to come with a PR next week.

@kAlvaro
Copy link

kAlvaro commented Mar 27, 2017

Does this ticket imply that the plugin is currently unable to handle arbitrary intervals (as opposed to day times)?

Increasing maxTime over 24:00 does not seem to work (fiddle) and I'm not sure whether I did something wrong.

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

No branches or pull requests

4 participants