InfoNeeds devcommands
time command
Syntax
What it does
Prints the current in-game time. It's flagged as a cheat command despite only printing information, so devcommands has to be on.
Cheat commands need the console enabled with the -console launch option, then devcommands typed once. They work in singleplayer or when you host, not on dedicated servers.
Examples
Shows the current world time.
Related commands