weareoutman/clockpicker — pull request #40 by JordyMoos (2014-12-04 20:23:11+00:00)
Title: Added the getTime method

Added the getTime method which returns a Date object, the hours and minutes will be added to today.

``` javascript
// 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

``` javascript
$('#single-input').clockpicker({
'default': new Date('Wed, 09 Aug 1995 13:15:00')
});
```