Mercurial > hg > nginx
comparison src/http/ngx_http_get_time.c @ 57:a499e0d1f16e
nginx-0.0.1-2003-01-30-10:28:09 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 30 Jan 2003 07:28:09 +0000 |
parents | 53cb81681040 |
children | a059e1aa65d4 |
comparison
equal
deleted
inserted
replaced
56:058f01f78761 | 57:a499e0d1f16e |
---|---|
3 | 3 |
4 #include <ngx_config.h> | 4 #include <ngx_config.h> |
5 #include <ngx_types.h> | 5 #include <ngx_types.h> |
6 | 6 |
7 | 7 |
8 ngx_http_get_time(char *buf, time_t t) | 8 size_t ngx_http_get_time(char *buf, time_t t) |
9 { | 9 { |
10 struct tm *tp; | 10 struct tm *tp; |
11 | 11 |
12 tp = gmtime(&t); | 12 tp = gmtime(&t); |
13 return strftime(buf, 30, "%a, %d %b %Y %H:%M:%S GMT", tp); | 13 return strftime(buf, 30, "%a, %d %b %Y %H:%M:%S GMT", tp); |