nginx/src/core/ngx_times.h

24 lines
482 B
C
Raw Normal View History

2003-11-11 05:09:22 +08:00
#ifndef _NGX_TIMES_H_INCLUDED_
#define _NGX_TIMES_H_INCLUDED_
#include <ngx_config.h>
#include <ngx_core.h>
2003-11-13 14:14:05 +08:00
void ngx_init_time();
2003-11-11 05:09:22 +08:00
void ngx_time_update();
2003-11-13 14:14:05 +08:00
size_t ngx_http_time(char *buf, time_t t);
void ngx_gmtime(time_t t, ngx_tm_t *tp);
2003-11-11 05:09:22 +08:00
2003-11-19 05:34:08 +08:00
#define ngx_time() ngx_cached_time
2003-11-11 05:09:22 +08:00
extern time_t ngx_cached_time;
2003-11-13 14:14:05 +08:00
extern ngx_str_t ngx_cached_err_log_time;
2003-11-11 05:09:22 +08:00
extern ngx_str_t ngx_cached_http_time;
extern ngx_str_t ngx_cached_http_log_time;
#endif /* _NGX_TIMES_H_INCLUDED_ */