2003-11-10 18:09:22 -03:00
|
|
|
#ifndef _NGX_TIMES_H_INCLUDED_
|
|
|
|
#define _NGX_TIMES_H_INCLUDED_
|
|
|
|
|
|
|
|
|
|
|
|
#include <ngx_config.h>
|
|
|
|
#include <ngx_core.h>
|
|
|
|
|
|
|
|
|
2003-11-25 17:44:56 -03:00
|
|
|
void ngx_time_init();
|
2004-01-05 17:55:48 -03:00
|
|
|
void ngx_time_update(time_t s);
|
2003-11-13 03:14:05 -03:00
|
|
|
size_t ngx_http_time(char *buf, time_t t);
|
|
|
|
void ngx_gmtime(time_t t, ngx_tm_t *tp);
|
2003-11-10 18:09:22 -03:00
|
|
|
|
2003-11-18 18:34:08 -03:00
|
|
|
#define ngx_time() ngx_cached_time
|
|
|
|
|
2003-11-10 18:09:22 -03:00
|
|
|
|
2003-12-04 11:53:00 -03:00
|
|
|
extern time_t ngx_cached_time;
|
|
|
|
extern ngx_epoch_msec_t ngx_elapsed_msec;
|
2003-12-05 14:07:27 -03:00
|
|
|
extern ngx_epoch_msec_t ngx_old_elapsed_msec;
|
2003-12-04 11:53:00 -03:00
|
|
|
extern ngx_epoch_msec_t ngx_start_msec;
|
|
|
|
|
|
|
|
extern ngx_str_t ngx_cached_err_log_time;
|
|
|
|
extern ngx_str_t ngx_cached_http_time;
|
|
|
|
extern ngx_str_t ngx_cached_http_log_time;
|
2003-11-10 18:09:22 -03:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* _NGX_TIMES_H_INCLUDED_ */
|