Mercurial > hg > nginx
view src/http/ngx_http_get_time.c @ 44:0e81ac0bb3e2
nginx-0.0.1-2003-01-09-08:36:00 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 09 Jan 2003 05:36:00 +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); }