|
NAMEKHTTP_EPOCH2TM , khttp_epoch2tms
—
convert time to components
LIBRARYlibrary “libkcgi”SYNOPSIS#include <sys/types.h>
#include <stdarg.h>
#include <stdint.h>
#include <kcgi.h>
int
int
DESCRIPTIONFormat an epoch value (seconds since Jan 1, 1970, 00:00:00 UTC) into its broken-down time components suitable for struct tm operations.The components of
If any of the pointers are The These deprecate the original
For conversion without possible overflow or underflow, use khttp_epoch2datetime(3). RETURN VALUESThese return zero on failure and non-zero on success. Failure occurs if epoch will overflow or underflow tm_year, which occurs around the year ±6.7+16.SEE ALSOkhttp_datetime2epoch(3), khttp_epoch2datetime(3), khttp_epoch2str(3)AUTHORSWritten by Kristaps Dzonsons <kristaps@bsd.lv>.
Visit the GSP FreeBSD Man Page Interface. |