SMOLNET PORTAL home about changes
MODULE Clock;

PROCEDURE GetRtcTime*(VAR second, minute, hour, day, month, year : INTEGER);
BEGIN
END GetRtcTime;

PROCEDURE Get*(VAR time, date : INTEGER);
BEGIN
END Get;

END Clock.

Clock
=====

This is a C time library wrapper for getting system time
to support Dates.Mod. The procedures are read only as
setting time is non-standard on many Unix-like systems[^1].
The two procedures follow the A2 style procedure signatures
adjusted for Oberon-7.


[^1]: Eric Raymond discusses time functions, http://www.catb.org/esr/time-programming/
Response: text/plain
Original URLgopher://sdf.org/0/users/rsdoiel/blog/2020/11/27/Clock.Mod
Content-Typetext/plain; charset=utf-8