Search

( date->string [ date? date ] ) string? ( 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.
( get-output-string [ output-port? port ] ) string?
It is an error if port was not created with open-output-string. Returns a string consisting of the characters that have been output to the port so far in the order they were output. If the result string is modified, the effect is unspecified.
( sort [ vector? sequence ] [ procedure? less? ] ) vector? ( sort [ vector? sequence ] [ procedure? less? ] [ procedure? key ] ) vector? ( sort [ list? sequence ] [ procedure? less? ] ) list? ( sort [ list? sequence ] [ procedure? less? ] [ procedure? key ] ) list? ( sort [ string? sequence ] [ procedure? less? ] ) string? ( sort [ string? sequence ] [ procedure? less? ] [ procedure? key ] ) string?
less? ( λ x y ) boolean?
key ( λ obj ) *
( sort! [ vector? sequence ] [ procedure? less? ] ) vector? ( sort! [ vector? sequence ] [ procedure? less? ] [ procedure? key ] ) vector? ( sort! [ list? sequence ] [ procedure? less? ] ) list? ( sort! [ list? sequence ] [ procedure? less? ] [ procedure? key ] ) list? ( sort! [ string? sequence ] [ procedure? less? ] ) string? ( sort! [ string? sequence ] [ procedure? less? ] [ procedure? key ] ) string?
less? ( λ x y ) boolean?
key ( λ obj ) *
( string-append-ec qualifier ... expression ) string?
generator generator-macro
expression string?
qualifier⟩:= 
generator ( if test ) ( not test ) ( and test ... ) ( or test ... ) ( begin command ... expression ) ( nested qualifier ... )
( string-ec qualifier ... expression ) string?
generator generator-macro
expression char?
qualifier⟩:= 
generator ( if test ) ( not test ) ( and test ... ) ( or test ... ) ( begin command ... expression ) ( nested qualifier ... )
( string-join [ list? string-list ] ) string? ( string-join [ list? string-list ] [ string? delimiter ] ) string? ( string-join [ list? string-list ] [ string? delimiter ] [ symbol? grammar ] ) string?
grammar
'infix
infix or separator grammar: insert the delimiter between list elements. An empty list will produce an empty string -- note, however, that parsing an empty string with an infix or separator grammar is ambiguous. Is it an empty list, or a list of one element, the empty string?
'strict-infix
same as 'infix, but will raise an error if given an empty list.
'suffix
suffix or terminator grammar: insert the delimiter after every list element. This grammar has no ambiguities.
'prefix
prefix grammar: insert the delimiter before every list element. This grammar has no ambiguities.