颜色表科学计算器日期计算器二维码URL编解码Base64加解密时间戳转换

现在:- 控制: 开始 停止

北京时间 (夏令时)

北京时间

获取当前时间戳

Swift
NSDate().timeIntervalSince1970
Go
import (
  "time"
)
int64(time.Now().Unix())
Java
// pure java
System.currentTimeMillis() / 1000
// joda java
DateTime.now().getMillis() / 1000
JavaScript
Math.round(new Date() / 1000)
Objective-C
[[NSDate date] timeIntervalSince1970]
MySQL
SELECT unix_timestamp(now())
SQLite
SELECT strftime('%s', 'now')
Erlang
calendar:datetime_to_gregorian_seconds(calendar:universal_time())-719528*24*3600.
PHP
<?php
// pure php
time();
<?php
// carbon php
use Carbon\Carbon;
Carbon::now()->timestamp;
Python
import time
time.time()
import arrow
arrow.utcnow().timestamp
Ruby
Time.now.to_i
Shell
date +%s
Groovy
(new Date().time / 1000).longValue()
Lua
os.time()
.NET/C#
(DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000
Dart
(new DateTime.now().millisecondsSinceEpoch / 1000).truncate()
© 2024 LMLPHP 关于我们 联系我们 友情链接 耗时0.001534(s)
2024-03-29 16:09:37 1711699777