Skip to content
Chris Petersen edited this page Oct 16, 2014 · 1 revision

time->string converts a time object to a string.

Parameter Description
t Time object to be converted
fmt Output string format. Accepting printf % notation and SRFI-19 ~ notation

Example

Example 1: Store current time into "Date" field of a data store

> (define store (make-store "main"))
> (store-set! store "Date" (time->string (current-time) "%D"))
> (store-ref store "Date")
"08/08/13"
Clone this wiki locally