Also readd classic worldtime2text for Alffd

This commit is contained in:
tigercat2000
2018-04-06 15:08:36 -07:00
parent 3600525b7e
commit 27c4fb130b
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -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)
+1
View File
@@ -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"