Mercurial > hg > nginx
view src/http/ngx_http_get_time.c @ 176:c0552e5ab567
nginx-0.0.1-2003-11-09-23:03:38 import; separate building
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 09 Nov 2003 20:03:38 +0000 |
parents | cd54bcbaf3b5 |
children |
line wrap: on
line source
#include <ngx_config.h> #include <ngx_core.h> size_t 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); }