From 65c1c2610aa9e1ed961c1a1e1bf84a0076e4f6c3 Mon Sep 17 00:00:00 2001 From: zlax Date: Wed, 4 May 2022 23:54:18 +0300 Subject: [PATCH] add seconds --- dtime.js | 2 +- index.html | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/dtime.js b/dtime.js index 39ce9f7..c3bfa8f 100644 --- a/dtime.js +++ b/dtime.js @@ -112,7 +112,7 @@ function dtime(gregorianDate,resultar="default") { return [Y]; break; case "timeofyold": - var dtimestr = seasonnum+"."+az(D)+" "+h+":"+az(m); + var dtimestr = seasonnum+"."+az(D)+" "+h+":"+az(m)+":"+az(s); return [dtimestr]; break; default: diff --git a/index.html b/index.html index a50dc52..46cf694 100644 --- a/index.html +++ b/index.html @@ -285,7 +285,7 @@ function formatedDate(datein, timeoutput, UTC) { if (timeoutput == 'erisian') var dateout = dtime(datein, 'timeofyold'); else { var timein = new Date ( datein.getTime() + ( UTC * 60 * 60 * 1000 )); - var dateout = "" + ("0" + ( timein.getUTCDate())).slice(-2) + "." + ("0" + ( timein.getUTCMonth() + 1)).slice(-2) + " " + ("0" + timein.getUTCHours()).slice(-2) + ":" + ("0" + timein.getUTCMinutes()).slice(-2); + var dateout = ("0" + ( timein.getUTCDate())).slice(-2) + "." + ("0" + ( timein.getUTCMonth() + 1)).slice(-2) + " " + ("0" + timein.getUTCHours()).slice(-2) + ":" + ("0" + timein.getUTCMinutes()).slice(-2) + ":" + ("0" + timein.getUTCSeconds()).slice(-2); } return dateout; } @@ -319,13 +319,13 @@ function makeTable(UTC, timeoutput) { fulltable += ''; if (timeoutput == 'erisian') fulltable += 'YOLD'; else fulltable += 'Gregorian Year'; - fulltable += 'Imbolc