Discussion in '7 Days to Die Development' started by txandy, Mar 9, 2017.
¿How can i get the current day?
After several hours investigating the source code of Oxide and after some tests I have found the answer. I hope someone else will serve you:
ulong currentTime = GameManager.Instance.World.worldTime; // Get current time in ulong format
int currentDay = GameUtils.WorldTimeToDays(currentTime); // Format to number in days