String date = new java.text.SimpleDateFormat("dd/MM/yyyy HH:mm:ss").format(new java.util.Date(Unix timestamp * 1000)) |
先 var unixTimestamp = new Date(Unix timestamp * 1000) 然后 commonTime = unixTimestamp.toLocaleString() |
date -d @Unix timestamp |
from_unixtime(Unix timestamp) |
先 my $time = Unix timestamp 然后 my ($sec, $min, $hour, $day, $month, $year) = (localtime($time))[0,1,2,3,4,5,6] |
date('r', Unix timestamp) |
SELECT TIMESTAMP WITH TIME ZONE 'epoch' + Unix timestamp) * INTERVAL '1 second'; |
先 import time 然后 time.gmtime(Unix timestamp) |
Time.at(Unix timestamp) |
DATEADD(s, Unix timestamp, '1970-01-01 00:00:00') |
DateAdd("s", Unix timestamp, "01/01/1970 00:00:00") |
命令行状态:perl -e "print scalar(localtime(Unix timestamp))"
|
特别提示:本信息由相关用户自行提供,真实性未证实,仅供参考。请谨慎采用,风险自负。