June 2018 Update

This commit is contained in:
Ingy döt Net 2018-06-22 20:57:24 +00:00
parent ba8067c3b7
commit 22f33d4004
5278 changed files with 84726 additions and 14379 deletions

View file

@ -0,0 +1,3 @@
REPORT system_time.
WRITE: sy-uzeit.

View file

@ -0,0 +1,6 @@
import extensions.
program =
[
console printLine(system'calendar'Date now).
].

View file

@ -0,0 +1,4 @@
/* Added by Aykayayciti Earl Lamont Montgomery
April 10th, 2018 */
> CurrentTime().toString()

View file

@ -0,0 +1,4 @@
CDateStruct ds;
Date2Struct(&ds, Now + local_time_offset);
Print("%04d-%02d-%02d %02d:%02d:%02d\n", ds.year, ds.mon, ds.day_of_mon, ds.hour, ds.min, ds.sec);

View file

@ -0,0 +1,21 @@
MODULE Mytime;
FROM SysClock IMPORT
GetClock, DateTime;
FROM STextIO IMPORT
WriteString, WriteLn;
FROM FormatDT IMPORT
DateTimeToString;
VAR
CurrentTime: DateTime;
DateStr, TimeStr: ARRAY [0 .. 20] OF CHAR;
BEGIN
GetClock(CurrentTime);
DateTimeToString(CurrentTime, DateStr, TimeStr);
WriteString("Current time: ");
WriteString(DateStr);
WriteString(" ");
WriteString(TimeStr);
WriteLn;
END Mytime.

View file

@ -0,0 +1,2 @@
di c(current_date)
di c(current_time)