Search

( date->string ( date? date ) ( string? format-string ) ) string?
format-string
~~
a literal ~
~a
locale's abbreviated weekday name (Sun...Sat)
~A
locale's full weekday name (Sunday...Saturday)
~b
locale's abbreviate month name (Jan...Dec)
~B
locale's full month day (January...December)
~c
locale's date and time (e.g., "Fri Jul 14 20:28:42-0400 2000")
~d
day of month, zero padded (01...31)
~D
date (mm/dd/yy)
~e
day of month, blank padded ( 1...31)
~f
seconds+fractional seconds, using locale's decimal separator (e.g. 5.2).
~h
same as ~b
~H
hour, zero padded, 24-hour clock (00...23)
~I
hour, zero padded, 12-hour clock (01...12)
~j
day of year, zero padded
~k
hour, blank padded, 24-hour clock ( 0...23)
~l
hour, blank padded, 12-hour clock ( 1...12)
~m
month, zero padded (01...12)
~M
minute, zero padded (00...59)
~n
new line
~N
nanosecond, zero padded
~p
locale's AM or PM
~r
time, 12 hour clock, same as "~I:~M:~S ~p"
~s
number of full seconds since "the epoch" (in UTC)
~S
second, zero padded (00...60)
~t
horizontal tab
~T
time, 24 hour clock, same as "~H:~M:~S"
~U
week number of year with Sunday as first day of week (00...53)
~V
ISO 8601 week number of the year with Monday as first day of week (01..53)
~w
day of week (0...6)
~W
week number of year with Monday as first day of week (01...52)
~x
locale's date representation
~X
locale's time representation
~y
last two digits of year (00...99)
~Y
year
~z
time zone in RFC-822 style
~Z
symbol time zone (not-implemented)
~1
ISO-8601 year-month-day format
~2
ISO-8601 hour-minute-second-timezone format
~3
ISO-8601 hour-minute-second format
~4
ISO-8601 year-month-day-hour-minute-second-timezone format
~5
ISO-8601 year-month-day-hour-minute-second format
( format ( string? format-string ) obj ... ) string?
format-string
~a
The corresponding value is inserted into the string as if printed with display.
~s
The corresponding value is inserted into the string as if printed with write.
~%A
A newline is inserted.
~~
A tilde '~' is inserted.