seconds string - part-cw/lambdanative GitHub Wiki
(seconds->string sec0 fmt . tz0)
seconds->string converts seconds to string, specified in format.
Parameter | Description |
---|---|
sec0 | Seconds (Unix epoch) value to be converted |
fmt | Output string format. Accepting printf % notation and SRFI-19 ~ notation |
tz0 | Optional: Timezone to be used |
Example
Example 1: Get timestamp of now
> (seconds->string (current-time-seconds) "%Y-%m-%d %H:%M:%S")
"2013-08-08 23:22:44"