caltime — calendar dates and times
#include <caltime.h> unsigned int \fBcaltime_fmt\fP(\fIs\fR,&\fIct\fR); unsigned int \fBcaltime_scan\fP(\fIs\fR,&\fIct\fR); struct caltime \fIct\fR; char *\fIs\fR;
ct
in ISO style (yyyy-mm-dd hh:mm:ss +oooo)
into the character buffer
s,
without a terminating NUL.
It returns the number of characters printed.
s
may be zero;
then
caltime_fmt
returns the number of characters that would have been printed.
caltime_scan
reads a calendar date, time, and offset in ISO style
from the beginning of the character buffer
s
and puts them into
ct.
It returns the number of characters read.
If
s
does not start with an ISO-style date and time (including offset),
caltime_scan
returns 0.