clockpicker icon indicating copy to clipboard operation
clockpicker copied to clipboard

Added the getTime method

Open JordyMoos opened this issue 11 years ago • 4 comments

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')
});

JordyMoos avatar Dec 04 '14 20:12 JordyMoos

Lekker bezig Moosje!

marcusklaas avatar Dec 04 '14 20:12 marcusklaas

It's good addition. Where Can I get version with it? It's no in official repo.

piernik avatar Dec 12 '14 19:12 piernik

@piernik Thanks!

It is not in the official repo yet, @weareoutman needs to approve it first :)

JordyMoos avatar Dec 15 '14 12:12 JordyMoos

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.

gicappa avatar Feb 11 '16 15:02 gicappa