Mercurial > hg > nginx
view src/http/ngx_http_get_time.c @ 67:5a7d1aaa1618
nginx-0.0.1-2003-03-11-23:38:13 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 11 Mar 2003 20:38:13 +0000 |
parents | a499e0d1f16e |
children | a059e1aa65d4 |
line wrap: on
line source
#include <nginx.h> #include <ngx_config.h> #include <ngx_types.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); }