|
NAMEkhttp_date2epoch ,
khttp_datetime2epoch —
validate and convert date and time
LIBRARYlibrary “libkcgi”SYNOPSIS#include <sys/types.h>
#include <stdarg.h>
#include <stdint.h>
#include <kcgi.h>
int
int
DESCRIPTIONConvert broken-day date and time values into seconds since 00:00:00 UTC, 1970-01-01. The date and time values are accepted as UTC.khttp_date2epoch () is equivalent to
khttp_datetime2epoch () but with zero
hour, min, and
sec arguments. If res is
NULL , simply check the time values for correctness.
Date correctness means that input values fall within the following acceptable ranges:
The year bound is the maximum year value that may be converted to seconds for a 64-bit integer. These deprecate RETURN VALUESReturn zero if the given values do not correspond to a valid date and time, non-zero otherwise.SEE ALSOkhttp_epoch2datetime(3), khttp_epoch2str(3), khttp_epoch2tms(3)AUTHORSWritten by Kristaps Dzonsons <kristaps@bsd.lv>.
Visit the GSP FreeBSD Man Page Interface. |