October 31, 2025, 11:59:34 AM

News:

IWBasic runs in Windows 11!


System time/date

Started by paja, August 12, 2009, 02:46:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

paja

How can I set system time/date in windows from an Ebasic program ?

ZeroDog


TYPE SYSTEMTIME
DEF wYear:INT
DEF wMonth:INT
DEF wDayOfWeek:INT
DEF wDay:INT
DEF wHour:INT
DEF wMinute:INT
DEF wSecond:INT
DEF wMilliseconds:INT
ENDTYPE

Declare IMPORT, SetSystemTime  (lpSystemTime As SYSTEMTIME),INT



Create a variable of the UDT SYSTEMTIME, fill it in, and pass it to the SetSystemTime  function