I'm looking for something like a "duration picker". Because googling "duration picker" doesn't give me any result, I would like to know if there is a technical name for it which can help in searching it. Time picker and Time Span picker doesn't bring anything helpful at the moment.
If something similar exists and someone can point me to that, it's ok instead of the technical name.
Update 1:
Sorry I completely forgot to explain what I mean by duration picker. It's not a time picker, but a way to choose how much time will last doing something, not relative to a date. For example, cooking a given recipe will take (duration) 4 hours and 10 minutes. Traveling from here to there will take 4 days and 10 hours.
My basic idea is the possibility to configure the picker for the "bigger" unit to use (days probably), the duration will be expressed in seconds internally. So I can say 20 days and 23 hours and 0 minutes
or if the "bigger" unit is days (for a software development job for example), I can write 150 hours and 30 minutes and 0 seconds
. It would be nice the option to hide some smaller fields, like minutes/seconds.
Update 2:
A very simple ui example:
You could use a set of customized jQuery spinners
$('#seconds').spinner({ spin: function (event, ui) { if (ui.value >= 60) { $(this).spinner('value', ui.value - 60); $('#minutes').spinner('stepUp'); return false; } else if (ui.value < 0) { $(this).spinner('value', ui.value + 60); $('#minutes').spinner('stepDown'); return false; } } });
like this: http://jsfiddle.net/xHzMw/1/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With