Mercurial > hg > nginx-quic
view src/http/ngx_http_get_time.c @ 21:df7fb216a149
nginx-0.0.1-2002-12-04-19:29:40 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 04 Dec 2002 16:29:40 +0000 |
parents | d7908993fdeb |
children | 77c7629a2627 |
line wrap: on
line source
#include <nginx.h> #include <ngx_config.h> ngx_http_get_time(char *buf, time_t t) { struct tm *tp; tp = gmtime(&t); return strftime(buf, 31, "%a, %d %b %Y %H:%M:%S GMT", tp); }