🕒 时间戳转换工具


等待转换...

常用语言获取时间戳的写法

语言 代码
JavaScript Math.round(new Date() / 1000)
MySQL SELECT UNIX_TIMESTAMP();
SELECT FROM_UNIXTIME(1567758868);
Java (int) (System.currentTimeMillis() / 1000)
PHP time();
date('Y-m-d H:i:s');
Go import ("time")
int32(time.Now().Unix())