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