Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
21
Task/Date-format/Component-Pascal/date-format.pas
Normal file
21
Task/Date-format/Component-Pascal/date-format.pas
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