Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
再会
这可能是一个简单的问题,但我只是在 steam api 文档中没有看到这一点。我想从 Steam api 中检索当前的 UTC 日期时间,以在我的游戏中启用某些特定于日期的功能,出于显而易见的原因,我不想使用本地计算机的日期时间。
提前致谢。
找到了这个,没有得到答案,显然这对你来说太晚了,但对于任何在未来寻找它的人来说:SteamUtils.GetServerRealTime() 将以秒为单位返回自 1970 年 1 月 1 日以来的时间