Mercurial > hg > nginx-quic
view src/http/ngx_http_get_time.c @ 56:058f01f78761
nginx-0.0.1-2003-01-29-20:02:48 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 29 Jan 2003 17:02:48 +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); }