mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-24 00:51:46 +00:00
determine if it is month 4 day 1. GET BUSY. Other shenanigans. Revision: r3361 Author: vageyenaman
25 lines
759 B
Plaintext
25 lines
759 B
Plaintext
proc/time_stamp()
|
|
var/hh = text2num(time2text(world.timeofday, "hh")) // Set the hour
|
|
var/mm = text2num(time2text(world.timeofday, "mm")) // Set the minute
|
|
var/ss = text2num(time2text(world.timeofday, "ss")) // Set the second
|
|
var/ph
|
|
var/pm
|
|
var/ps
|
|
if(hh < 10) ph = "0"
|
|
if(mm < 10) pm = "0"
|
|
if(ss < 10) ps = "0"
|
|
return"[ph][hh]:[pm][mm]:[ps][ss]"
|
|
|
|
|
|
/* Returns 1 if it is the selected month and day */
|
|
proc/isDay(var/month, var/day)
|
|
if(isnum(month) && isnum(day))
|
|
var/MM = text2num(time2text(world.timeofday, "MM")) // get the current month
|
|
var/DD = text2num(time2text(world.timeofday, "DD")) // get the current day
|
|
if(month == MM && day == DD)
|
|
return 1
|
|
|
|
// Uncomment this out when debugging!
|
|
//else
|
|
//return 1
|