by Rachael Arnold http://www.rachaelarnold.com/dev/archive/why-is-date-returning-wrong Demystifying 12/31/1969 (or 1/1/1970 for Eastern Hemisphere folk) Since the Unix timestamp is based off the Unix Epoch, an invalid timestamp defaults to to the Epo…
一个将Unix时间转换为通用时间的工具 演示效果: 点击转换之后变为: 源码: function calctime2(){ var time = window.document.getElementById("inpTime").value; if ( time == "" ) { alert("时间为空,请又一次输入"); return; } if ( isDigit(time) == false ) { alert("时间仅仅能由数…