(t, e = null)
| 2325 | } |
| 2326 | |
| 2327 | time(t, e = null) { |
| 2328 | const s = e ? new Date(e) : new Date; |
| 2329 | let i = {"M+": s.getMonth() + 1, "d+": s.getDate(), "H+": s.getHours(), "m+": s.getMinutes(), "s+": s.getSeconds(), "q+": Math.floor((s.getMonth() + 3) / 3), S: s.getMilliseconds()}; |
| 2330 | /(y+)/.test(t) && (t = t.replace(RegExp.$1, (s.getFullYear() + "").substr(4 - RegExp.$1.length))); |
| 2331 | for (let e in i) new RegExp("(" + e + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? i[e] : ("00" + i[e]).substr(("" + i[e]).length))); |
| 2332 | return t |
| 2333 | } |
| 2334 | |
| 2335 | msg(e = t, s = "", i = "", r) { |
| 2336 | const o = t => { |
nothing calls this directly
no outgoing calls
no test coverage detected