Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
8
Task/Date-format/Red/date-format.red
Normal file
8
Task/Date-format/Red/date-format.red
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
Red []
|
||||
;; zeropad
|
||||
f2n: func [d] [ if d > 9 [return d ] append copy "0" d ]
|
||||
|
||||
d: now/date
|
||||
|
||||
print rejoin [d/year "-" f2n d/month "-" f2n d/day]
|
||||
print rejoin [system/locale/days/(d/weekday) ", " system/locale/months/(d/month) " " f2n d/day ", " d/year]
|
||||
Loading…
Add table
Add a link
Reference in a new issue