Way to determine the number of seconds since the epoch?
本问题已经有最佳答案,请猛点这里访问。
在Python中获取
1 | time.now() = seconds since epoch GMT at the time time.now() is called |
似乎有关于如何从
挖了一会儿..我希望有人有更好的东西,但这是我的解决方案:
1 | calendar.timegm(time.gmtime()) |
在Python中获取
1 | time.now() = seconds since epoch GMT at the time time.now() is called |
似乎有关于如何从
挖了一会儿..我希望有人有更好的东西,但这是我的解决方案:
1 | calendar.timegm(time.gmtime()) |