SS1984 - Modules - Types

code/__HELPERS/time.dm

/proc/classic_worldtime2textThis 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/worldtime2textReturns the world time in english
/proc/roundtime2textReturns the world time in english
/proc/station_timeThis is used for displaying the "station time" equivelent of a world.time value Calling it with no args will give you the current time, but you can specify a world.time-based value as an argument
/proc/time_to_twelve_hourConverts a time expressed in deciseconds (like world.time) to the 12-hour time format. the format arg is the format passed down to time2text() (e.g. "hh:mm" is hours and minutes but not seconds). the timezone is the time value offset from the local time. It's to be applied outside time2text() to get the AM/PM right.
/proc/SQLtimeReturns timestamp in a sql and ISO 8601 friendly format
/proc/start_watchReturns "watch handle" (really just a timestamp :V)
/proc/stop_watchReturns number of seconds elapsed. @param wh number The "Watch Handle" from start_watch(). (timestamp)
/proc/seconds_to_timeTake a value in seconds and returns a string of minutes and seconds in the format X minute(s) and X seconds.
/proc/seconds_to_clockTake a value in seconds and makes it display like a clock
/proc/DisplayTimeTextTakes a value of time in deciseconds. Returns a text value of that number in hours, minutes, or seconds.