Here is some code you could add to decode the file_mod date and time components back into JavaScript Date object. Tested to work with all dates after 1980 due to zip encoding.
var decodeZipDateTime = function(date, time){
var year = (date>>>9)+1980,
month = ((date>>>5)&15)-1,
day = (date)&31,
hours = (time>>>11)&31,
minutes = (time>>>5)&63,
seconds = (time&63)*2;
return {
year: year,
month: month,
day: day,
hours: hours,
minutes: minutes,
seconds: seconds,
date: new Date(year, month, day, hours, minutes, seconds)
};
}
Here is some code you could add to decode the file_mod date and time components back into JavaScript Date object. Tested to work with all dates after 1980 due to zip encoding.
var decodeZipDateTime = function(date, time){ var year = (date>>>9)+1980, month = ((date>>>5)&15)-1, day = (date)&31, hours = (time>>>11)&31, minutes = (time>>>5)&63, seconds = (time&63)*2; return { year: year, month: month, day: day, hours: hours, minutes: minutes, seconds: seconds, date: new Date(year, month, day, hours, minutes, seconds) }; }