PageSourceSearch

https://www.tkbgo.com.tw/tkbgo/useTimeLimit.DmwDLM7F.js

js tkbgo.com.tw collected 2026-10-05 11:44:19 UTC 911 bytes, 4 lines download raw bytes

1function m(e,i,o="00:00:00",s="00:00:00"){if(!e&&!i)return console.warn(`useTimeLimit: 請至少提供開始或結束日期
2- 需要開始和結束日期: useTimeLimit("YYYY-MM-DD", "YYYY-MM-DD")
3- 只需開始日期: useTimeLimit("YYYY-MM-DD")
4- 只需結束日期: useTimeLimit(null, "YYYY-MM-DD")`),!1;const n=new Date;try{if(e&&!i){const t=new Date(`${e} ${o}`);if(isNaN(t.getTime()))throw new Error("無效的開始日期");return n>=t}if(!e&&i){const t=new Date(`${i} ${s}`);if(isNaN(t.getTime()))throw new Error("無效的結束日期");return n<t}const r=new Date(`${e} ${o}`),a=new Date(`${i} ${s}`);if(isNaN(r.getTime())||isNaN(a.getTime()))throw new TypeError("無效的日期格式");return r>a?(console.error("useTimeLimit: 開始日期不能晚於結束日期",{startDate:`${e} ${o}`,endDate:`${i} ${s}`}),!1):n>=r&&n<a}catch(r){return console.error("useTimeLimit:",r.message),!1}}export{m as u};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.