Peter's example:
include "sw.inc"
Window 640,480,1
Type SYSTEMTIME
word wYear
word wMonth
word wDayOfWeek
word wDay
word wHour
word wMinute
word wSecond
word wMilliseconds
End Type
Declare GetSystemTime LIB "KERNEL32.DLL" ( SYSTEMTIME *lpSystemTime )
Declare GetLocalTime Lib "kernel32.dll" ( ByRef lpSystemTime As SYSTEMTIME )
SYSTEMTIME t
while Key(27)=0
Cls RGB(255,255,255)
GetLocalTime t
Text 40,0,"Everything at a glance",sw_blue
Text 40, 40, "Datum " + t.wDay + "." + t.wMonth + "." + t.wYear,0
Text 40, 60, "Tag der Woche " + t.wDayOfWeek,0
Text 40, 80, "Zeit " + t.wHour + "." + t.wMinute + "." + t.wSecond,0
Sync
wend
Quit