A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
9
Task/Date-format/Joy/date-format.joy
Normal file
9
Task/Date-format/Joy/date-format.joy
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
DEFINE weekdays == [ "Monday" "Tuesday" "Wednesday" "Thursday" "Friday" "Saturday" "Sunday" ];
|
||||
months == [ "January" "February" "March" "April" "May" "June" "July" "August"
|
||||
"September" "October" "November" "December" ].
|
||||
|
||||
time localtime [ [0 at 'd 4 4 format] ["-"] [1 at 'd 2 2 format] ["-"] [2 at 'd 2 2 format] ]
|
||||
[i] map [putchars] step '\n putch pop.
|
||||
|
||||
time localtime [ [8 at pred weekdays of] [", "] [1 at pred months of] [" "] [2 at 'd 1 1 format]
|
||||
[", "] [0 at 'd 4 4 format] ] [i] map [putchars] step '\n putch pop.
|
||||
Loading…
Add table
Add a link
Reference in a new issue