---
# System prepended metadata

title: Time
tags: [Guide To Contibuting]

---

###### tags: `Guide To Contibuting`

# Time

`world.time` gets you deciseconds since server started.
`world.timeofday` gets you deciseconds since midnight today
- Use `REALTIMEOFDAY` macro in Citadel code. This accounts for midnight rollovers.
    - You don't know what a midnight rollover is, probably, if you haven't done development before
        - Just do as I say.
        - If you're doing a high performance thing that doesn't care that much about time and is only across the timespan of a few minutes at most and doesn't break horribly if it suddenly gets an extra hour on its measured time, just use `world.timeofday` because `REALTIMEOFDAY` is slower, marginally.
`world.realtime` gets you deciseconds since the start of the 20th century.
You probably won't be using realtime a lot.

For displaying this as text, there's time2text BYOND buitlin, or a number of things in `code/__HELPERS/time.dm` /tg/ made for making this easier.
