Check date?

CeakCeak Posts: 36Member

I was wondering how I could check the date? What I am trying to do is have the game check the date, save it and compare it to the next time the player logs in to see if a real world day has passed. I found a post online that references get_datetime_from_unix_time but I am not sure how to use that.


Tags :

Best Answer

  • TwistedTwiglegTwistedTwigleg Posts: 2,814
    Accepted Answer

    Have you seen the get_date function in the OS singleton documentation? It looks like it returns a dictionary full of the data about the date, which with a little post processing, should be usable for determining if a real world day has passed.

Answers

  • TwistedTwiglegTwistedTwigleg Posts: 2,814Admin
    Accepted Answer

    Have you seen the get_date function in the OS singleton documentation? It looks like it returns a dictionary full of the data about the date, which with a little post processing, should be usable for determining if a real world day has passed.

  • CeakCeak Posts: 36Member

    Thank you, not sure why I didnt come up with that when trying to figure this out... sometimes I guess you just need a second pair of eyes, or another brain lol

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file