Jump to content

adding (system) time


traltixx
 Share

Recommended Posts

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?

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...