Module:DQXTime

local dqxtime = {}

-- Date and time (GMT): Wednesday, June 9, 2021 1:01:00 AM local begin_epoch = 1623200460 local begin_dqx = 73200 -- 1 second is 20 seconds, 20:20:00

local function convert_to_time(tenths) local hh = (tenths / (60 * 60 * 10)) % 24 local mm = (tenths / (60 * 10)) % 60 local ss = (tenths / 10) % 60

return string.format("%02d:%02d:%02d", hh-4, mm, ss) end

function dqxtime.update(frame) local current_seconds = tonumber(frame.args.seconds) or begin_epoch+1 local real_diff = current_seconds-begin_epoch local dqx_diff = real_diff*20 local t_secs = begin_dqx+dqx_diff return convert_to_time(t_secs*10) end

return dqxtime