If I console.log the datepicker onSet context argument like so
onSet: function( val ) {
console.log( val );
}
pickadate.js returns a timestamp. The timepicker doesn't return a timestamp though. So if I select "5:00 PM" in the timepicker, I'll get "1020". Is there any reason why the timepicker doesn't return a timestamp (similar to the datepicker)? Something like "61200" for 5:00 PM...
EDIT: I know that I can multiply "1020" by 60 to get "61200"... But I'm not sure why the timepicker doesn't output a timestamp by default...
If I
console.log
the datepickeronSet
context argument like sopickadate.js returns a timestamp. The timepicker doesn't return a timestamp though. So if I select "5:00 PM" in the timepicker, I'll get "1020". Is there any reason why the timepicker doesn't return a timestamp (similar to the datepicker)? Something like "61200" for 5:00 PM...
EDIT: I know that I can multiply "1020" by 60 to get "61200"... But I'm not sure why the timepicker doesn't output a timestamp by default...