|
NAMEkhttp_epoch2str ,
khttp_epoch2ustr —
convert time to a string
LIBRARYlibrary “libkcgi”SYNOPSIS#include <sys/types.h>
#include <stdarg.h>
#include <stdint.h>
#include <kcgi.h>
char *
char *
DESCRIPTIONFormat an epoch value (seconds since Jan 1, 1970, 00:00:00 UTC) into the buffer buf of size sz, which should be greater than or equal to 64 bytes. If not enough space is given for the formatted date, the buffer is truncated to the available size. It is always NUL-terminated.The output of
These deprecate the original
RETURN VALUESReturns a pointer to the input buf orNULL if buf is
NULL , sz is zero, or time
conversion fails.
SEE ALSOkhttp_datetime2epoch(3), khttp_epoch2datetime(3), khttp_epoch2tms(3)AUTHORSWritten by Kristaps Dzonsons <kristaps@bsd.lv>.
Visit the GSP FreeBSD Man Page Interface. |