Sign in to follow this  
Followers 0
traltixx

adding (system) time

3 posts in this topic

Hi,

I'm trying to get the current time and add x milliseconds to it like this:

#include <Date.au3>
#include <Array.au3>
#include <IE.au3>

$time_sleep = 2260000

$tCur = _Date_Time_GetLocalTime()

$wake_at = _Date_Time_GetLocalTime() + $time_sleep
ConsoleWrite("Now " & _Date_Time_SystemTimeToDateTimeStr($tCur) & " Then is " & _Date_Time_SystemTimeToDateTimeStr($wake_at) & @CRLF)

But this doesn't work. What am I doing wrong here?

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  
Followers 0