Name
ap_ht_time — return a pool-allocated string describing a time
Synopsis
char *ap_ht_time(pool *p, time_t t, const char *fmt, int gmt)
Formats the time using strftime
and returns a
pool-allocated copy of it. If gmt
is nonzero, the
time is formatted as GMT; otherwise, it is formatted as local time.
Returns a pointer to the string containing the time.
Get Apache: The Definitive Guide, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.