Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
13
Task/Date-format/Racket/date-format.rkt
Normal file
13
Task/Date-format/Racket/date-format.rkt
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#lang racket
|
||||
(require srfi/19)
|
||||
|
||||
;;; The first required format is an ISO-8601 year-month-day format, predefined
|
||||
;;; as ~1 in date->string
|
||||
(displayln (date->string (current-date) "~1"))
|
||||
|
||||
;;; You should be able to see how each of the components of the following format string
|
||||
;;; work...
|
||||
;;; ~d is zero padded day of month:
|
||||
(displayln (date->string (current-date) "~A, ~B ~d, ~Y"))
|
||||
;;; ~e is space padded day of month:
|
||||
(displayln (date->string (current-date) "~A, ~B ~e, ~Y"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue