1. txandy

    txandy Naked Wanderer

    ¿How can i get the current day?
     
  2. txandy

    txandy Naked Wanderer

    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