MKTIME IN JS

var seconds = new Date(year, month, day, hours, minutes, seconds, 0).getTime() / 1000;
Comfortable Capuchin