aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-07-12 01:11:57 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-07-12 01:11:57 +0200
commit5b27be4b8d2e4551dc3514bbc52382861061edc0 (patch)
tree7a82128826d58b989ad07e9aa91c712e85cc5ff0
parentSlightly simplify js format_date. (diff)
downloadcalp-5b27be4b8d2e4551dc3514bbc52382861061edc0.tar.gz
calp-5b27be4b8d2e4551dc3514bbc52382861061edc0.tar.xz
Remove unused decimal_time_to_string.
-rw-r--r--static/script.js9
1 files changed, 0 insertions, 9 deletions
diff --git a/static/script.js b/static/script.js
index 9b720a0b..ea1b057d 100644
--- a/static/script.js
+++ b/static/script.js
@@ -20,15 +20,6 @@ function parents_until (element, obj) {
}
}
-function decimal_time_to_string (time) {
- let hour = Math.floor(time);
- if (hour < 10) {
- hour = '0' + hour;
- }
- let minute = String((time - Math.floor(time)) * 60).padStart(2, 0);
- return "" + hour + ":" + minute;
-}
-
function decimal_time_to_date (time) {
let hour = Math.floor(time);
let minute = (time - hour) * 60;