Added the getTime method
Added the getTime method which returns a Date object, the hours and minutes will be added to today.
// Get the time of single clockpicker
var dateObject = $('#demo-input').clockpicker('getTime');
console.log(dateObject);
// Get the time of a clockpicker list
$('.clockpicker').clockpicker('getTime', function(dateObject) {
// The clockpicker element
console.log(this);
console.log(dateObject);
});
Also allows you to add a Date object as the 'default' options. It will only use the Date object to get the time. It will not update the Date object when the time changes
$('#single-input').clockpicker({
'default': new Date('Wed, 09 Aug 1995 13:15:00')
});
Lekker bezig Moosje!
It's good addition. Where Can I get version with it? It's no in official repo.
@piernik Thanks!
It is not in the official repo yet, @weareoutman needs to approve it first :)
Is the project still supported? I'm asking because I think this pull is quite important and it's been opened in Dec 4, 2014 but I can't see any feedback from the maintainers about the possibility of a merge.