Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get QM to set system date?
#1
Is it possible to get QM to change the system date (within Windows) on my computer?
#2
Macro Macro18
Code:
Select All      Help
DateTime d.FromStr("2018-06-19 18:20:00")
d.SetComputerTime
#3
Thank you brilliant
#4
How can i use this for only setting the time?
Date should be today.
pi
#5
Macro Macro24
Code:
Select All      Help
DateTime d.FromComputerTime
SYSTEMTIME k=d.ToSYSTEMTIME
k.wHour=12; k.wMinute=30; k.wSecond=0; k.wMilliseconds=0
d.FromSYSTEMTIME(k)
out d.ToStr

or

Macro Macro21
Code:
Select All      Help
DateTime d.FromComputerTime
d=d.GetDatePart
d.AddParts(0 12 30)
out d.ToStr

or

Macro Macro25
Code:
Select All      Help
DateTime d.FromComputerTime
d=d.GetDatePart
d=d+DateTime.TimeSpanFromStr("12:30")
out d.ToStr
#6
Thanks!
pi


Forum Jump:


Users browsing this thread: 1 Guest(s)