Time for an 2014 update…
This commit is contained in:
parent
372c577f83
commit
09687c4926
2520 changed files with 34227 additions and 7318 deletions
15
Task/Date-format/PL-I/date-format-1.pli
Normal file
15
Task/Date-format/PL-I/date-format-1.pli
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
df: proc Options(main);
|
||||
declare day_of_week(7) character (9) varying initial(
|
||||
'Sunday','Monday','Tuesday','Wednesday',
|
||||
'Thursday','Friday','Saturday');
|
||||
declare today character (9);
|
||||
|
||||
today = datetime('YYYYMMDD');
|
||||
put edit(substr(today,1,4),'-',substr(today,5,2),'-',substr(today,7))
|
||||
(A);
|
||||
|
||||
today = datetime('MmmDDYYYY');
|
||||
put skip edit(day_of_week(weekday(days())),', ') (A);
|
||||
put edit(substr(today,1,3),' ',substr(today,4,2),', ',
|
||||
substr(today,6,4))(A);
|
||||
end;
|
||||
16
Task/Date-format/PL-I/date-format-2.pli
Normal file
16
Task/Date-format/PL-I/date-format-2.pli
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
df: proc Options(Main);
|
||||
declare day_of_week(7) character(9) varying initial(
|
||||
'Sunday','Monday','Tuesday','Wednesday',
|
||||
'Thursday','Friday','Saturday');
|
||||
declare today character(8);
|
||||
declare month(12) character(10) varying initial(
|
||||
'January','February','March','April','May','June','July',
|
||||
'August','September','October','November','December');
|
||||
|
||||
Put edit(translate('abcd-ef-gh',datetime('YYYYMMDD'),'abcdefgh'))(a);
|
||||
today = datetime('MMDDYYYY');
|
||||
|
||||
put skip edit(day_of_week(weekday()),', ') (A);
|
||||
put edit(month(substr(today,1,2)),' ',substr(today,3,2),', ',
|
||||
substr(today,5,4))(A);
|
||||
End;
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
declare day_of_week(7) character (9) varying initial
|
||||
'Sunday', 'Monday', 'Tuesday', 'Wednesday',
|
||||
'Thursday', 'Friday', 'Saturday');
|
||||
declare today character (8);
|
||||
|
||||
today = datetime('YYYYMMDD');
|
||||
put edit (substr(today, 1, 4), '-', substr(today, 5, 2), '-', substr(today, 7) ) (A);
|
||||
|
||||
today = datetime('MmmDDYYYY');
|
||||
|
||||
put skip edit (day_of_week(weekday(days())), ', ') (A);
|
||||
put edit (substr(today, 1, 3), ' ', substr(today, 4, 2), ',', substr(today, 6, 4) ) (A);
|
||||
Loading…
Add table
Add a link
Reference in a new issue