System date actualization
Hi all,
I have an issue to modify System Date time. I need to modify for a scripts section, the Windows date. I could do it, but i need after this script section, to return at real time.
For example, if i need to set Today on system, I used a boolean True and if False, a hardcode date. First I hardcode the date and then i should set the real time date.
sub DateSystem(Today)
If Today = true then
aqdatetime.SetSystemDateTime(aqdatetime.Now)
Log.Message "System date is: " & aqdatetime.Today
else
day = aqDateTime.SetDateElements("2017", "05", "22")
aqDateTime.SetSystemDateTime day
Log.Message "System date is: " & aqdatetime.Today
End if
end sub
How can I return the System date to normal or real date/time?
Regards.
I usually use the HISUtils.StopWatch object for that sort of thing. https://support.smartbear.com/testcomplete/docs/reference/program-objects/hisutils/stopwatch/index.html