【JS】取三小时以前的时间

        // 得到三小时以前的时间
        function get3HoursAgo(){
            var t = new Date(new Date().getTime() - 3 * 3600 * 1000);
            return t;
        }

END

原文地址:https://www.cnblogs.com/heyang78/p/15521649.html