Mercurial > hg > nginx
view src/http/ngx_http_get_time.c @ 41:59e7c7f30d49
nginx-0.0.1-2002-12-26-19:26:23 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 26 Dec 2002 16:26:23 +0000 |
parents | 53cb81681040 |
children | a499e0d1f16e |
line wrap: on
line source
#include <nginx.h> #include <ngx_config.h> #include <ngx_types.h> ngx_http_get_time(char *buf, time_t t) { struct tm *tp; tp = gmtime(&t); return strftime(buf, 30, "%a, %d %b %Y %H:%M:%S GMT", tp); }