Beta

Timestamp Convert #Transform

Current timestamp
Timestamp
Current time
Time
Timestamp (s)
Timestamp (ms)
ISO 8601
Date Time (UTC)
Date Time (Local)

About

Unix时间戳

从1970年1月1日(UTC/GMT的午夜)开始所经过的秒数,不考虑闰秒。

英文为 Unix epoch, Unix time, POSIX time 或 Unix timestamp

Get Unix timestamp

SwiftNSDate().timeIntervalSince1970
Goimport ( "time" )
int32(time.Now().Unix())
Java(int) (System.currentTimeMillis() / 1000)
JavaScriptMath.round(new Date() / 1000)
Objective-C[[NSDate date] timeIntervalSince1970]
MySQLSELECT unix_timestamp(now())
SQLiteSELECT strftime('%s', 'now')
PHPtime()
Pythonimport time
time.time()
RubyTime.now.to_i
Shelldate +%s
Groovy(new Date().time / 1000).intValue()
Luaos.time()
.NET/C#(DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000
Keep faith in what you want, even if you don't have it now, you may never get it.
——Nietzsche
About - Customized - Cooperation
© 2019-2024 ® , All Rights Reserved.
Powered by WINGEASE