(t)
| 19 | |
| 20 | // A JSON tuple string, or localtime(now) when the arg is omitted. |
| 21 | const resolve = (t) => (t !== undefined ? JSON.parse(t) : JSON.parse(toTuple(new Date(), false))); |
| 22 | |
| 23 | const fmtTuple = (t, fmt) => { |
| 24 | const [Y, mo, d, H, Mi, S, w, j] = t; |