Explorar o código

Time: Added procedure Timestamp, returns Unix timestamp

Arthur Yefimov hai 11 meses
pai
achega
3e7d8b5143
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      src/Time.Mod

+ 5 - 0
src/Time.Mod

@@ -1,6 +1,11 @@
 MODULE Time;
 IMPORT Platform, Int;
 
+TYPE Time* = INTEGER;
+
+PROCEDURE Timestamp*(): Time;
+RETURN Platform.Time() END Timestamp;
+
 PROCEDURE GetClock*(VAR time, date: INTEGER);
 BEGIN
   Platform.GetClock(time, date)