From 12054874dc0041ea15e215fee6f0b70134a73863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 5 Jan 2021 23:58:44 +0100 Subject: Minor commentns. --- static/lib.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/lib.js b/static/lib.js index 84ca97c8..11fdaf79 100644 --- a/static/lib.js +++ b/static/lib.js @@ -32,6 +32,9 @@ function zip(...args) { NOTE that only the raw `get' (and NOT the `getUTC') methods should be used on these objects, and that the reported timezone is quite often wrong. + + TODO The years between 0 and 100 (inclusive) gives dates in the twentieth + century, due to how javascript works (...). */ function parseDate(str) { @@ -126,6 +129,7 @@ function asList(thing) { } +/* internal */ function datepad(thing, width=2) { return (thing + "").padStart(width, "0"); } -- cgit v1.2.3