Forum Discussion
HKosova
14 years agoSmartBear Alumni (Retired)
Hi Nassim,
Try this:
Try this:
var unixTime = Math.round((new Date()).getTime() / 1000);
Set dtUTC = GetObject("winmgmts:\\.\root\cimv2:Win32_UTCTime=@")
dt = aqDateTime.SetDateTimeElements(dtUTC.Year, dtUTC.Month, dtUTC.Day, dtUTC.Hour, dtUTC.Minute, dtUTC.Second)
unixTime = DateDiff("s", "01/01/1970 00:00:00", dt)
Related Content
- 9 years ago
- 5 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago