time string - part-cw/lambdanative GitHub Wiki
(time->string t fmt)
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"