Mercurial > hg > nginx-quic
comparison src/http/ngx_http_get_time.c @ 119:cd54bcbaf3b5
nginx-0.0.1-2003-07-21-01:15:59 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 20 Jul 2003 21:15:59 +0000 |
parents | a059e1aa65d4 |
children |
comparison
equal
deleted
inserted
replaced
118:5bf52498665c | 119:cd54bcbaf3b5 |
---|---|
3 #include <ngx_core.h> | 3 #include <ngx_core.h> |
4 | 4 |
5 | 5 |
6 size_t ngx_http_get_time(char *buf, time_t t) | 6 size_t ngx_http_get_time(char *buf, time_t t) |
7 { | 7 { |
8 struct tm *tp; | 8 struct tm *tp; |
9 | 9 |
10 tp = gmtime(&t); | 10 tp = gmtime(&t); |
11 return strftime(buf, 30, "%a, %d %b %Y %H:%M:%S GMT", tp); | 11 return strftime(buf, 30, "%a, %d %b %Y %H:%M:%S GMT", tp); |
12 } | 12 } |