Not sure that it is possible. Unless there is a function somewhere that isn't documented in the wiki then there are no functions to gain access to what the day/night cycle is or what time it is in game. The day and time functions currently available are, to my current knowledge, local to the computer and not the game itself.