chickadee » srfi-19 » read-date-literal

read-date-literal #!optional PORTprocedure

Read a date-literal from the PORT, in one of the supported forms, and return the object creation source form; '(make-date ....).

PORT
input-port ; default (current-input-port)

Supported forms:

"~Y-~m-~dT~H:~M:~f~z"
date time timezone
"~Y-~m-~dT~H:~M:~f"
date time
"~Y-~m-~d"
date
"~H:~M:~f~z"
time timezone; date components from (current-date)
"~H:~M:~f"
time; date components from (current-date)