mirror of
https://github.com/vapaamies/KolibriOS.git
synced 2025-09-22 15:13:49 +02:00
26 lines
482 B
ObjectPascal
26 lines
482 B
ObjectPascal
program DateTime;
|
|
|
|
uses
|
|
KolibriOS, CRT;
|
|
|
|
var
|
|
CursorXY: TCursorXY;
|
|
|
|
begin
|
|
InitConsole('Date/Time', True, 80, 25, 80, 25);
|
|
|
|
CursorOff;
|
|
GotoXY(27, 12);
|
|
Write(
|
|
'System Date and System Time'#10 +
|
|
' '
|
|
);
|
|
CursorXY := WhereXY;
|
|
repeat
|
|
with GetSystemDate, GetSystemTime do
|
|
con_printf('%02x.%02x.%02x - %02x:%02x:%02x', Day, Month, Year, Hours, Minutes, Seconds);
|
|
GotoXY(CursorXY);
|
|
Delay(500);
|
|
until KeyPressed;
|
|
end.
|