@name Robotboy655's Expression One: Server Uptime
@outputs Days Hours Minutes Seconds
@persist Time

# Retrieve server uptime
Time = curtime()

# Synchronize timing with clock edge
interval(1000)
if(!Time | !$Time)
{
interval(1)
}

# Compute time output parts
Seconds = floor(Time % 60)
Minutes = floor(Time / 60) % 60
Hours = floor(Time / 3600) % 24
Days = floor(Time / 86400)
