Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 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