Ross
Ross

Reputation: 83

Steam API: Get current UTC DateTime

Good Day

This might be a simple question, but I just don't see this on the steam api documentation. I would like to retrieve the current UTC datetime from the steam api to enable some date specific features in my game and for obvious reasons I don't want to use the local computer datetime.

Thanks in advance.

Upvotes: 1

Views: 1780

Answers (1)

user1948708
user1948708

Reputation: 43

found this, didn't get the answer, obviously it's too late for you but for anyone who's looking for it in the future : SteamUtils.GetServerRealTime() will return the time in seconds since January 1st, 1970

Upvotes: 1

Related Questions