SimpleDao
Unix時间戳轉換辅助 - Unix timestamp convert
Unix時間戳和日期彼此轉換

當前日期時間:,時間戳:

各编程说话获得此刻的Unix時间戳(Unix timestamp):

Go int32(time.Now().Unix())
Java System.currentTimeMillis() / 1000
JavaScript Math.round(new Date().getTime()/1000)
Microsoft .NET / C# epoch = (DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000
MySQL SELECT unix_timestamp(now())
Perl time
PHP time()
PostgreSQL SELECT extract(epoch FROM now())
Python time.time()
Ruby 获得Unix時间戳:Time.now 或 Time.new; 显示Unix時间戳:Time.now.to_i
SQL Server SELECT DATEDIFF(s, '1970-01-01 00:00:00', GETUTCDATE())
Unix / Linux date +%s
Swift NSDate().timeIntervalSince1970
Objective-C [[NSDate date] timeIntervalSince1970]
Lua os.time()
VBScript / ASP DateDiff("s", "01/01/1970 00:00:00", Now())
其他操纵系統号令行 perl -e "print time"
xxfseo.com