I'm trying to get an !uptime command running and it seems to work, except that it adds 4 hours to the uptime, consistently. If I pull the time directly from $ctime it is correct so I am just super confused. Any help please?

on *:text:!uptime:#:{
var %diff = $calc($ctime - %starttime)
var %format = $asctime(%diff, hh:nn:ss)
msg # the stream started %format
}

on *:text:!start:#: {
if ($nick isin $read(mod.txt, w, $nick)) {
set %starttime $ctime
msg $chan The stream start has been set
}
else {
msg $chan I'm sorry $nick $+ , I'm afraid I can't do that (Mod Command)
}
}


Total n00b smirk