Sync
This commit is contained in:
parent
6f050a029e
commit
776bba907c
3887 changed files with 59894 additions and 7280 deletions
21
Task/Date-format/Component-Pascal/date-format.component
Normal file
21
Task/Date-format/Component-Pascal/date-format.component
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
MODULE DateFormat;
|
||||
IMPORT StdLog, Dates;
|
||||
|
||||
PROCEDURE Do*;
|
||||
VAR
|
||||
d: Dates.Date;
|
||||
resp: ARRAY 64 OF CHAR;
|
||||
BEGIN
|
||||
Dates.GetDate(d);
|
||||
Dates.DateToString(d,Dates.short,resp);
|
||||
StdLog.String(":> " + resp);StdLog.Ln;
|
||||
Dates.DateToString(d,Dates.abbreviated,resp);
|
||||
StdLog.String(":> " + resp);StdLog.Ln;
|
||||
Dates.DateToString(d,Dates.long,resp);
|
||||
StdLog.String(":> " + resp);StdLog.Ln;
|
||||
Dates.DateToString(d,Dates.plainAbbreviated,resp);
|
||||
StdLog.String(":> " + resp);StdLog.Ln;
|
||||
Dates.DateToString(d,Dates.plainLong,resp);
|
||||
StdLog.String(":> " + resp);StdLog.Ln;
|
||||
END Do;
|
||||
END DateFormat.
|
||||
Loading…
Add table
Add a link
Reference in a new issue