Mercurial > hg > nginx-quic
view src/http/ngx_http_get_time.c @ 136:da00cde00e8a
nginx-0.0.1-2003-10-02-09:39:37 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 02 Oct 2003 05:39:37 +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); }