SETCLOCK

X16

Defined in X16.BAS.

Sets the date and time.

Subroutine header

SUB SETCLOCK ( _
  year AS BYTE, _
  month AS BYTE, _
  day AS BYTE, _
  hour AS BYTE, _
  min AS BYTE, _
  sec AS BYTE _
) SHARED STATIC

Example

INCLUDE "x16.bas"
' Set the clock to 2022-12-29 21:50:00
' Note: year is 1900-based
CALL SETCLOCK(122, 12, 29, 21, 50, 0)

See also