Jump to content

Check if systemtime has changed


Recommended Posts

I want to check if the system time has added to 10minutes so I used this:
 

$sNewDate = _DateAdd('n', 15, _NowCalc())
$sNewDate2 = _DateAdd('n', 0, _NowCalc())

ConsoleWrite("current time now: " & $sNewDate2)
ConsoleWrite("time after 15minutes: " & $sNewDate)

this print me out

.... 2016/01/12 10:04:55 and

.... 2016/01/12 10:14:55 and

but how can I make a statement like if $sNewDate2 has + 15minutes so I can do something after the check.

Link to comment
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
 Share

×
×
  • Create New...