Sardith Posted November 14, 2006 Share Posted November 14, 2006 #Include <Date.au3> While 1 $Diff = _DateDiff("D", _NowCalc(), (@YEAR + 1)) $Time = _NowTime(3) ToolTip($Time & @CRLF & $Diff, 0,0) Sleep(10) WEnd For some reason, I can't get the syntax right. What I'm trying to do, is display the current time, and then do datediff. for the current date, to jan 15. Could anyone lend me a had? [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font] Link to comment Share on other sites More sharing options...
Paulie Posted November 14, 2006 Share Posted November 14, 2006 You were close, but didn't specify third parameter correctly #Include <Date.au3> While 1 $Diff = _DateDiff("D", _NowCalc(), (@YEAR + 1)&"/01/15") $Time = _NowTime() ToolTip($Time & @CRLF & $Diff&" Days", 0,0) Sleep(10) WEnd Link to comment Share on other sites More sharing options...
Sardith Posted November 14, 2006 Author Share Posted November 14, 2006 Thanks Paulie [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now