nginx/src/os/unix/ngx_time.h


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


#ifndef _NGX_TIME_H_INCLUDED_
#define _NGX_TIME_H_INCLUDED_


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


ngx_msec_t;
ngx_msec_int_t;

ngx_tm_t;

#define ngx_tm_sec
#define ngx_tm_min
#define ngx_tm_hour
#define ngx_tm_mday
#define ngx_tm_mon
#define ngx_tm_year
#define ngx_tm_wday
#define ngx_tm_isdst

#define ngx_tm_sec_t
#define ngx_tm_min_t
#define ngx_tm_hour_t
#define ngx_tm_mday_t
#define ngx_tm_mon_t
#define ngx_tm_year_t
#define ngx_tm_wday_t


#if (NGX_HAVE_GMTOFF)
#define ngx_tm_gmtoff
#define ngx_tm_zone
#endif


#if (NGX_SOLARIS)

#define ngx_timezone

#else

#define ngx_timezone(isdst)

#endif


void ngx_timezone_update(void);
void ngx_localtime(time_t s, ngx_tm_t *tm);
void ngx_libc_localtime(time_t s, struct tm *tm);
void ngx_libc_gmtime(time_t s, struct tm *tm);

#define ngx_gettimeofday(tp)
#define ngx_msleep(ms)
#define ngx_sleep(s)


#endif /* _NGX_TIME_H_INCLUDED_ */