Mercurial > hg > nginx
view src/http/ngx_http_get_time.c @ 20:a649c0a0adb3
nginx-0.0.1-2002-12-03-18:45:38 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 03 Dec 2002 15:45:38 +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); }