aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-01-05 23:58:44 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-01-05 23:58:44 +0100
commit12054874dc0041ea15e215fee6f0b70134a73863 (patch)
tree84477ed0785ecaf135d6f4792dcb5d18660cf358 /static
parentStart work on jcal system. (diff)
downloadcalp-12054874dc0041ea15e215fee6f0b70134a73863.tar.gz
calp-12054874dc0041ea15e215fee6f0b70134a73863.tar.xz
Minor commentns.
Diffstat (limited to 'static')
-rw-r--r--static/lib.js4
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");
}