I am trying to set the system time on my Windows computer, but avoid
using the DOS command (date, time).
Does anyone know what parameter to pass to function SetLocalTime?
CSharp ref
Thanks a bunch,
P
Traceback (most recent call last):
File "<interacti ve input>", line 1, in ?
ArgumentError: argument 1: exceptions.Type Error: Don't know how to
convert parameter 1
Traceback (most recent call last):
File "<interacti ve input>", line 1, in ?
TypeError: invalid type
using the DOS command (date, time).
Does anyone know what parameter to pass to function SetLocalTime?
CSharp ref
Thanks a bunch,
P
>>import ctypes
>>import pywintypes
>>t = pywintypes.Time (time.time())
>>ctypes.windll .kernel32.SetLo calTime(t)
>>import pywintypes
>>t = pywintypes.Time (time.time())
>>ctypes.windll .kernel32.SetLo calTime(t)
File "<interacti ve input>", line 1, in ?
ArgumentError: argument 1: exceptions.Type Error: Don't know how to
convert parameter 1
>>ctypes.windll .kernel32.SetLo calTime(ctypes. addressof(t))
File "<interacti ve input>", line 1, in ?
TypeError: invalid type
Comment