Sha256: cfade3d85e13e6db29085849c62018e736484a7fc6583c66f1984206671bbf85

Contents?: true

Size: 1.12 KB

Versions: 29

Compression:

Stored size: 1.12 KB

Contents

/*
 * Copyright (C) Igor Sysoev
 * Copyright (C) Nginx, Inc.
 */


#ifndef _NGX_TIMES_H_INCLUDED_
#define _NGX_TIMES_H_INCLUDED_


#include <ngx_config.h>
#include <ngx_core.h>


typedef struct {
    time_t      sec;
    ngx_uint_t  msec;
    ngx_int_t   gmtoff;
} ngx_time_t;


void ngx_time_init(void);
void ngx_time_update(void);
void ngx_time_sigsafe_update(void);
u_char *ngx_http_time(u_char *buf, time_t t);
u_char *ngx_http_cookie_time(u_char *buf, time_t t);
void ngx_gmtime(time_t t, ngx_tm_t *tp);

time_t ngx_next_time(time_t when);
#define ngx_next_time_n      "mktime()"


extern volatile ngx_time_t  *ngx_cached_time;

#define ngx_time()           ngx_cached_time->sec
#define ngx_timeofday()      (ngx_time_t *) ngx_cached_time

extern volatile ngx_str_t    ngx_cached_err_log_time;
extern volatile ngx_str_t    ngx_cached_http_time;
extern volatile ngx_str_t    ngx_cached_http_log_time;
extern volatile ngx_str_t    ngx_cached_http_log_iso8601;

/*
 * milliseconds elapsed since epoch and truncated to ngx_msec_t,
 * used in event timers
 */
extern volatile ngx_msec_t  ngx_current_msec;


#endif /* _NGX_TIMES_H_INCLUDED_ */

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
nginxtra-1.6.3.9 vendor/nginx/src/core/ngx_times.h
nginxtra-1.6.2.9 vendor/nginx/src/core/ngx_times.h
nginxtra-1.6.1.9 vendor/nginx/src/core/ngx_times.h
nginxtra-1.6.0.9 vendor/nginx/src/core/ngx_times.h
nginxtra-1.4.7.9 vendor/nginx/src/core/ngx_times.h
nginxtra-1.4.6.9 vendor/nginx/src/core/ngx_times.h
nginxtra-1.4.5.9 vendor/nginx/src/core/ngx_times.h
nginxtra-1.4.4.9 vendor/nginx/src/core/ngx_times.h
nginxtra-1.4.3.9 vendor/nginx/src/core/ngx_times.h
nginxtra-1.4.2.9 vendor/nginx/src/core/ngx_times.h
nginxtra-1.4.1.9 vendor/nginx/src/core/ngx_times.h
nginxtra-1.4.0.9 vendor/nginx/src/core/ngx_times.h
nginxtra-1.4.0.8 vendor/nginx/src/core/ngx_times.h
nginxtra-1.2.8.8 vendor/nginx/src/core/ngx_times.h
nginxtra-1.2.7.8 vendor/nginx/src/core/ngx_times.h
nginxtra-1.2.6.8 vendor/nginx/src/core/ngx_times.h
nginxtra-1.2.6.7 vendor/nginx/src/core/ngx_times.h
nginxtra-1.2.5.7 vendor/nginx/src/core/ngx_times.h
nginxtra-1.2.4.7 vendor/nginx/src/core/ngx_times.h
nginxtra-1.2.3.7 vendor/nginx/src/core/ngx_times.h