Unix时间戳

当前时间
Unix时间戳
北京时间

在编程语言中获取Unix时间戳:

语言
JavaScriptMath.round(new Date().getTime() / 1000)
JavaSystem.currentTimeMillis() / 1000
Pythonint(time.time())
Gotime.Now().Unix()
PHPtime()
RubyTime.now.to_i
C#DateTimeOffset.UtcNow.ToUnixTimeSeconds()
SwiftNSDate().timeIntervalSince1970
Objective-C[[NSDate date] timeIntervalSince1970]