Welcome to the Creatures Wiki! Log in and join the community.
RTIM
Jump to navigation
Jump to search
RTIM is a CAOS command for getting the current (real-world) time in UNIX/POSIX Time format. It returns an integer. (Real TIMe)
Unless RTIM is being used with another variable to store the date/time, RTIM is usually paired with RTIF which formats the RTIM integer into a human-readable string.
Usage[edit]
Syntax: RTIM
Examples[edit]
Using OUTV and the CAOS Command Line, show the number of seconds that have passed since Jan 1, 1970, midnight UTC (aka UNIX time):
OUTV RTIM
Using OUTS, RTIF, and the CAOS Command Line, show the current (real world) hour in 24-hour format:
OUTS RTIF RTIM "%H"