diff --git a/code/__HELPERS/time.dm b/code/__HELPERS/time.dm index fc45e4ae494..154d9631a2f 100644 --- a/code/__HELPERS/time.dm +++ b/code/__HELPERS/time.dm @@ -30,6 +30,14 @@ return wtime + (time_offset + wusage) * world.tick_lag +/* This proc should only be used for world/Topic. + * If you want to display the time for which dream daemon has been running ("round time") use worldtime2text. + * If you want to display the canonical station "time" (aka the in-character time of the station) use station_time_timestamp + */ +/proc/classic_worldtime2text() + time = (round_start_time ? (time - round_start_time) : (time - world.time)) + return "[round(time / 36000)+12]:[(time / 600 % 60) < 10 ? add_zero(time / 600 % 60, 1) : time / 600 % 60]" + //Returns the world time in english /proc/worldtime2text() return gameTimestamp("hh:mm:ss", world.time) diff --git a/code/world.dm b/code/world.dm index 3064338f1ae..48c48debef5 100644 --- a/code/world.dm +++ b/code/world.dm @@ -118,6 +118,7 @@ var/world_topic_spam_protect_time = world.timeofday s["players"] = list() s["roundtime"] = worldtime2text() s["stationtime"] = station_time_timestamp() + s["oldstationtime"] = classic_worldtime2text() // more "consistent" indication of the round's running time s["listed"] = "Public" if(!hub_password) s["listed"] = "Invisible"