Jump to content
Sign in to follow this  
Phaser

Lapsed hours

Recommended Posts

Phaser

Hi Guys

I would like to have a message popup stating how many hours have passed since last logon, I can store the old time in an ini then read it when next using the app, how do I queery the difference?

Thanks

Share this post


Link to post
Share on other sites
Realm

Hello Phaser,

Try:

_DateDiff() in the Date.au3 UDF

Realm


My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry.  

Share this post


Link to post
Share on other sites
bogQ

_DateDiff shud do it


TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites
Phaser

thanks guys, found this epoc thingy in the forum _datediff

_DateDiff( 's',"1970/01/01 00:00:00",_NowCalc())

just need my own vars in there, thanks again for the direction

Edited by Phaser

Share this post


Link to post
Share on other sites
Realm

Phaser,

There is specific documentation in the Help File under the 'User Defined Functions Reference' in Date Management that would be very helpful in figuring out how to customize that function to your needs.

Realm


My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry.  

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.