Mercurial > hg > nginx
view src/http/ngx_http_get_time.c @ 19:d7908993fdeb
nginx-0.0.1-2002-12-02-19:09:40 import; resume after 2 months stall
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 02 Dec 2002 16:09:40 +0000 |
parents | |
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); }