diff options
Diffstat (limited to 'src/os/unix/ngx_time.h')
-rw-r--r-- | src/os/unix/ngx_time.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/os/unix/ngx_time.h b/src/os/unix/ngx_time.h new file mode 100644 index 000000000..b262da7cf --- /dev/null +++ b/src/os/unix/ngx_time.h @@ -0,0 +1,22 @@ +#ifndef _NGX_TIME_H_INCLUDED_ +#define _NGX_TIME_H_INCLUDED_ + + +#include <ngx_config.h> + +typedef struct tm ngx_tm_t; + +#define ngx_tm_sec tm_sec +#define ngx_tm_min tm_min +#define ngx_tm_hour tm_hour +#define ngx_tm_mday tm_mday +#define ngx_tm_mon tm_mon +#define ngx_tm_year tm_year +#define ngx_tm_wday tm_wday + +void ngx_localtime(ngx_tm_t *tm); + +u_int ngx_msec(void); + + +#endif /* _NGX_TIME_H_INCLUDED_ */ |