Jump to content

Independent clock possible?


 Share

Recommended Posts

Hello.

I'm doing a project that needs to alter the system time and date to a previous or later value and then to revert ir again to the correct time and date.

I've seen here on the forums a way to do this:

#include <Date.au3>

$tCur = _Date_Time_GetSystemTime()
$Date = "01.01.2010"
Run(@ComSpec & " /c " & "date " & $Date, "", @SW_HIDE)
 Sleep(2000)
_Date_Time_SetSystemTime(DllStructGetPtr($tCur))

But if i increase the delay on sleep to 10 seconds, the time will be late ten seconds.

Is there a way to change the time back to the correct actual time without the use of the internet?

Thanks!

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...