AutoHotkey Community

It is currently May 26th, 2012, 3:58 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: April 30th, 2008, 8:03 am 
Offline

Joined: July 5th, 2006, 6:22 am
Posts: 37
In many languages there's a raw "seconds since Unix era" feature that returns the number of seconds since, I think, 1970. Useful for comparing dates.

Is such a thing possible with AHK?

Thanks.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 30th, 2008, 9:02 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7501
Location: Australia
EnvSub can be used to find the difference between two dates (in Seconds, Minutes, Hours or Days.)
Code:
var := A_Now
EnvSub, var, 197001010000, S ; 1970-Jan-01
MsgBox %var%


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Exabot [Bot], oldbrother, Yahoo [Bot] and 23 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group