Ver Fonte

Time: Added procedure Timestamp, returns Unix timestamp

Arthur Yefimov há 11 meses atrás
pai
commit
3e7d8b5143
1 ficheiros alterados com 5 adições e 0 exclusões
  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)