Code: Select all
1604478439708
I think the format is: year/month/day/hour/min/sec/ms
I tried:
Code: Select all
myNow := A_YYYY A_MM A_DD A_Hour A_Min A_Sec A_MSec
x := human2Unix(myNow)
FileAppend, human2unix: %x% `n, *
y := unix2Human(1604478439708)
FileAppend, unix2Human: %y% `n, *
return
unix2Human(unixTimestamp) {
returnDate = 19700101000000
returnDate += unixTimestamp, s
return returnDate
}
human2Unix(humanTime) {
humanTime -= 1970, s
return humanTime
}
And y does not output anything.