BruceyBandit
BruceyBandit

Reputation: 4324

Adding seconds to Jquery timepicker

I have a jQuery Timepicker code below:

$('#timepicker').timepicker({
        showOn: 'button',
        button: '.timepicker_button_trigger'
});

This Timepicker can be seen on this website: here

The problem which I can't find the solution of is that I want to include seconds in this Timepicker with hours and minutes. Is there a solution for this with this Timepicker or not?

I am using the timepicker to set the duration of something.

Upvotes: 2

Views: 17588

Answers (1)

Ricardo Binns
Ricardo Binns

Reputation: 3246

check this: http://trentrichardson.com/examples/timepicker/ and see if helps you

there you have some examples working with seconds.

example:

$('#example5').datetimepicker({
   showSecond: true,
   showMillisec: true,
   timeFormat: 'hh:mm:ss:l'
});

Upvotes: 8

Related Questions