mirror of
https://github.com/vishapoberon/vipak.git
synced 2026-04-05 20:42:26 +00:00
Initial commit for opium
This commit is contained in:
parent
6686997ed2
commit
69a133eec1
7 changed files with 51 additions and 772 deletions
26
logger.Mod
Normal file
26
logger.Mod
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
MODULE Logger;
|
||||
IMPORT time, Out;
|
||||
|
||||
PROCEDURE Log*(buff: ARRAY OF CHAR);
|
||||
VAR
|
||||
year, month, day, hour, min, sec: LONGINT;
|
||||
BEGIN
|
||||
time.Now(year, month, day, hour, min, sec);
|
||||
|
||||
Out.Int(year, 4);
|
||||
Out.String("/");
|
||||
Out.Int(month, 2);
|
||||
Out.String("/");
|
||||
Out.Int(day, 2);
|
||||
Out.String(" ");
|
||||
Out.Int(hour, 2);
|
||||
Out.String("-");
|
||||
Out.Int(min, 2);
|
||||
Out.String("-");
|
||||
Out.Int(sec, 2);
|
||||
Out.String(" ");
|
||||
Out.String(buff);
|
||||
Out.Ln;
|
||||
END Log;
|
||||
|
||||
END Logger.
|
||||
Loading…
Add table
Add a link
Reference in a new issue