src/os/win32/ngx_time.h - nginx source code

Data types defined

Macros defined

Source code


  1. /*
  2. * Copyright (C) Igor Sysoev
  3. * Copyright (C) Nginx, Inc.
  4. */


  5. #ifndef _NGX_TIME_H_INCLUDED_
  6. #define _NGX_TIME_H_INCLUDED_


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


  9. typedef ngx_rbtree_key_t      ngx_msec_t;
  10. typedef ngx_rbtree_key_int_t  ngx_msec_int_t;

  11. typedef SYSTEMTIME            ngx_tm_t;
  12. typedef FILETIME              ngx_mtime_t;

  13. #define ngx_tm_sec            wSecond
  14. #define ngx_tm_min            wMinute
  15. #define ngx_tm_hour           wHour
  16. #define ngx_tm_mday           wDay
  17. #define ngx_tm_mon            wMonth
  18. #define ngx_tm_year           wYear
  19. #define ngx_tm_wday           wDayOfWeek

  20. #define ngx_tm_sec_t          u_short
  21. #define ngx_tm_min_t          u_short
  22. #define ngx_tm_hour_t         u_short
  23. #define ngx_tm_mday_t         u_short
  24. #define ngx_tm_mon_t          u_short
  25. #define ngx_tm_year_t         u_short
  26. #define ngx_tm_wday_t         u_short


  27. #define ngx_msleep            Sleep

  28. #define NGX_HAVE_GETTIMEZONE  1

  29. #define  ngx_timezone_update()

  30. ngx_int_t ngx_gettimezone(void);
  31. void ngx_libc_localtime(time_t s, struct tm *tm);
  32. void ngx_libc_gmtime(time_t s, struct tm *tm);
  33. void ngx_gettimeofday(struct timeval *tp);


  34. #endif /* _NGX_TIME_H_INCLUDED_ */