function startUnix($date) { return(new Date(Date.parse($date.replace(/-/g, "/")))).getTime() / 1000; } function endUnix($date) { return new Date().setTime(Date.parse($date.replace(/-/g, "/")) / 1000 + 24 * 60 * 60 - 1); }
原文地址:https://www.cnblogs.com/web-wjg/p/9025098.html
时间: 2024-11-06 03:29:54