Manual Reference Pages - CALTIME (3)
caltime - calendar dates and times
unsigned int caltime_fmt(s,&ct);
unsigned int caltime_scan(s,&ct);
struct caltime ct;
struct caltime value is a calendar date and time with an offset in minutes from UTC.
It has five components:
a leap second occurred
on 30 June 1997 at 23:59:60 UTC.
The local time in New York was
30 June 1997 19:59:60 -0400.
This local time is represented inside a
struct caltime with
date containing 1997, 6, 30;
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;
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.
s does not start with an ISO-style date and time (including offset),
caltime_scan returns 0.
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.