换算代码已经写好了,和大家分享下
#Include <Date.au3>
$time=$time1+115200
$time_year0=Floor($time/31536000);$time_year为到现在为止的过的年
$time_year=$time_year0+1970
$a=0
For $i=0 To $time_year0-1 Step +1
If _DateIsLeapYear($i+1970) Then
$a=$a+1
EndIf
Next
$lun=_DateDaysInMonth($time_year,2)
$time_year1=$time-($time_year0*31536000)-($a*86400)
$time_day1=Floor ($time_year1/86400)
Select
Case $time_day1<=31
$time_mon=1
$time_day= $time_day1
Case $time_day1-31<=$lun
$time_mon=2
$time_day= $time_day1-31
Case $time_day1-31-$lun<=31
$time_mon=3
$time_day=$time_day1-31-$lun
Case $time_day1-31-$lun-31<=30
$time_mon=4
$time_day=$time_day1-31-$lun-31
Case $time_day1-31-$lun-31-30<=31
$time_mon=5
$time_day=$time_day1-31-$lun-31-30
Case $time_day1-31-$lun-31-30-31<=30
$time_mon=6
$time_day=$time_day1-31-$lun-31-30-31
Case $time_day1-31-$lun-31-30-31-30<=31
$time_mon=7
$time_day=$time_day1-31-$lun-31-30-31-30
Case $time_day1-31-$lun-31-30-31-30-31<=31
$time_mon=8
$time_day=$time_day1-31-$lun-31-30-31-30-31
Case $time_day1-31-$lun-31-30-31-30-31-31<=30
$time_mon=9
$time_day=$time_day1-31-$lun-31-30-31-30-31-31
Case $time_day1-31-$lun-31-30-31-30-31-31-30<=31
$time_mon=10
$time_day=$time_day1-31-$lun-31-30-31-30-31-31-30
Case $time_day1-31-$lun-31-30-31-30-31-31-30-31<=30
$time_mon=11
$time_day=$time_day1-31-$lun-31-30-31-30-31-31-30-31
Case $time_day1-31-$lun-31-30-31-30-31-31-30-31-30<=31
$time_mon=12
$time_day=$time_day1-31-$lun-31-30-31-30-31-31-30-31-30
EndSelect
$time_hour=Floor(($time_year1-$time_day1*86400)/3600)
$time_min1=($time_year1-$time_day1*86400)-$time_hour*3600
$time_min=Floor ($time_min1/60)
$time_s=$time_min1-$time_min*60
MsgBox(4096,"",$time_year&"-"&$time_mon&"-"&$time_day&"-"&$time_hour&"-"&$time_min&"-"&$time_s)