timePart of Date, Methods Webix Docs
gets the time part of a date in seconds
number timePart(Date date);
date
| number | the number of seconds from the start of day |
Example
var date1 = new Date(2012,11,12,8,35);
var date2 = webix.Date.timePart(date1);
console.log(date1); // Wed Dec 12 2012 08:35:00 GMT+0300
console.log(date2); // 30900
See also
API
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.