diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-01-05 23:58:44 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-01-05 23:58:44 +0100 |
commit | 12054874dc0041ea15e215fee6f0b70134a73863 (patch) | |
tree | 84477ed0785ecaf135d6f4792dcb5d18660cf358 /static/lib.js | |
parent | Start work on jcal system. (diff) | |
download | calp-12054874dc0041ea15e215fee6f0b70134a73863.tar.gz calp-12054874dc0041ea15e215fee6f0b70134a73863.tar.xz |
Minor commentns.
Diffstat (limited to 'static/lib.js')
-rw-r--r-- | static/lib.js | 4 |
1 files changed, 4 insertions, 0 deletions
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"); } |