Mercurial > hg > nginx
view src/http/ngx_http_get_time.c @ 53:d1e42f1b8fd4
nginx-0.0.1-2003-01-27-00:08:14 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 26 Jan 2003 21:08:14 +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); }