(t, e = null)
| 1043 | } |
| 1044 | |
| 1045 | time(t, e = null) { |
| 1046 | const s = e ? new Date(e) : new Date; |
| 1047 | let i = { |
| 1048 | "M+": s.getMonth() + 1, |
| 1049 | "d+": s.getDate(), |
| 1050 | "H+": s.getHours(), |
| 1051 | "m+": s.getMinutes(), |
| 1052 | "s+": s.getSeconds(), |
| 1053 | "q+": Math.floor((s.getMonth() + 3) / 3), |
| 1054 | S: s.getMilliseconds() |
| 1055 | }; |
| 1056 | /(y+)/.test(t) && (t = t.replace(RegExp.$1, (s.getFullYear() + "").substr(4 - RegExp.$1.length))); |
| 1057 | 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))); |
| 1058 | return t |
| 1059 | } |
| 1060 | |
| 1061 | msg(e = t, s = "", i = "", r) { |
| 1062 | const o = t => { |
nothing calls this directly
no outgoing calls
no test coverage detected