/unit/src/ |
H A D | nxt_app_log.c | 13 struct tm *tm, size_t size, const char *format); 16 struct tm *tm, size_t size, const char *format); 112 nxt_log_error_time(u_char *buf, nxt_realtime_t *now, struct tm *tm, size_t size, in nxt_log_error_time() argument 116 tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, in nxt_log_error_time() 117 tm->tm_hour, tm->tm_min, tm->tm_sec); in nxt_log_error_time() 132 nxt_log_debug_time(u_char *buf, nxt_realtime_t *now, struct tm *tm, size_t size, in nxt_log_debug_time() argument 136 tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, in nxt_log_debug_time() 137 tm->tm_hour, tm->tm_min, tm->tm_sec, in nxt_log_debug_time()
|
H A D | nxt_gmtime.c | 13 nxt_gmtime(nxt_time_t s, struct tm *tm) in nxt_gmtime() argument 22 tm->tm_wday = (4 + days) % 7; in nxt_gmtime() 70 tm->tm_mday = mday; in nxt_gmtime() 71 tm->tm_mon = mon; in nxt_gmtime() 72 tm->tm_year = year - 1900; in nxt_gmtime() 73 tm->tm_yday = yday; in nxt_gmtime() 75 tm->tm_hour = daytime / 3600; in nxt_gmtime() 77 tm->tm_min = daytime / 60; in nxt_gmtime() 78 tm->tm_sec = daytime % 60; in nxt_gmtime()
|
H A D | nxt_time.h | 40 NXT_EXPORT void nxt_localtime(nxt_time_t s, struct tm *tm); 77 #define nxt_timezone(tm) \ argument 78 ((tm)->tm_gmtoff) 82 #define nxt_timezone(tm) \ argument 83 (-(((tm)->tm_isdst > 0) ? altzone : timezone)) 87 #define nxt_timezone(tm) \ argument 88 (-(((tm)->tm_isdst > 0) ? timezone + 3600 : timezone))
|
H A D | nxt_thread_time.h | 21 struct tm *tm, size_t size, 45 struct tm gmtime; 46 struct tm localtime; 89 NXT_EXPORT void nxt_gmtime(nxt_time_t s, struct tm *tm);
|
H A D | nxt_thread_time.c | 229 struct tm *tm; in nxt_thread_time_string() local 276 tm = &thr->time.localtime; in nxt_thread_time_string() 306 nxt_gmtime(s + nxt_timezone(tm), tm); in nxt_thread_time_string() 311 tm = &thr->time.gmtime; in nxt_thread_time_string() 314 nxt_gmtime(s, tm); in nxt_thread_time_string() 335 p = ts->handler(p, &thr->time.now.realtime, tm, ts->size, ts->format); in nxt_thread_time_string() 354 struct tm tm; in nxt_thread_time_string_no_cache() local 363 nxt_localtime(now.sec, &tm); in nxt_thread_time_string_no_cache() 366 nxt_gmtime(now.sec + nxt_gmtoff, &tm); in nxt_thread_time_string_no_cache() 370 nxt_gmtime(now.sec, &tm); in nxt_thread_time_string_no_cache() [all …]
|
H A D | nxt_time.c | 264 nxt_localtime(nxt_time_t s, struct tm *tm) in nxt_localtime() argument 269 (void) localtime_r(&_s, tm); in nxt_localtime() 276 nxt_localtime(nxt_time_t s, struct tm *tm) in nxt_localtime() argument 279 struct tm *_tm; in nxt_localtime() 283 *tm = *_tm; in nxt_localtime()
|
H A D | nxt_http.h | 304 nxt_http_date(u_char *buf, struct tm *tm) in nxt_http_date() argument 314 week[tm->tm_wday], tm->tm_mday, in nxt_http_date() 315 month[tm->tm_mon], tm->tm_year + 1900, in nxt_http_date() 316 tm->tm_hour, tm->tm_min, tm->tm_sec); in nxt_http_date()
|
H A D | nxt_http_variables.c | 28 struct tm *tm, size_t size, const char *format); 364 nxt_http_log_date(u_char *buf, nxt_realtime_t *now, struct tm *tm, in nxt_http_log_date() argument 373 gmtoff = nxt_timezone(tm) / 60; in nxt_http_log_date() 384 tm->tm_mday, month[tm->tm_mon], tm->tm_year + 1900, in nxt_http_log_date() 385 tm->tm_hour, tm->tm_min, tm->tm_sec, in nxt_http_log_date()
|
H A D | nxt_controller.c | 125 struct tm *tm, size_t size, const char *format); 2652 nxt_controller_date(u_char *buf, nxt_realtime_t *now, struct tm *tm, in nxt_controller_date() argument 2662 week[tm->tm_wday], tm->tm_mday, in nxt_controller_date() 2663 month[tm->tm_mon], tm->tm_year + 1900, in nxt_controller_date() 2664 tm->tm_hour, tm->tm_min, tm->tm_sec); in nxt_controller_date()
|
H A D | nxt_http_request.c | 29 struct tm *tm, size_t size, const char *format); 870 nxt_http_date_cache_handler(u_char *buf, nxt_realtime_t *now, struct tm *tm, in nxt_http_date_cache_handler() argument 873 return nxt_http_date(buf, tm); in nxt_http_date_cache_handler()
|
H A D | nxt_http_static.c | 308 struct tm tm; in nxt_http_static_send_ready() local 531 nxt_localtime(nxt_file_mtime(&fi), &tm); in nxt_http_static_send_ready() 534 field->value_length = nxt_http_date(p, &tm) - p; in nxt_http_static_send_ready()
|
H A D | nxt_unit.c | 6685 struct tm tm; in nxt_unit_snprint_prefix() local 6691 (void) localtime_r(&ts.tv_sec, &tm); in nxt_unit_snprint_prefix() 6693 tm = *localtime(&ts.tv_sec); in nxt_unit_snprint_prefix() 6699 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, in nxt_unit_snprint_prefix() 6700 tm.tm_hour, tm.tm_min, tm.tm_sec, in nxt_unit_snprint_prefix() 6705 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, in nxt_unit_snprint_prefix() 6706 tm.tm_hour, tm.tm_min, tm.tm_sec); in nxt_unit_snprint_prefix()
|
/unit/auto/ |
H A D | time | 177 nxt_feature="struct tm.tm_gmtoff" 186 struct tm tm; 189 localtime_r(&t, &tm); 190 return tm.tm_gmtoff; 218 struct tm tm; 221 localtime_r(&t, &tm);
|
/unit/src/test/ |
H A D | nxt_gmtime_test.c | 28 struct tm tm0, *tm1; in nxt_gmtime_test()
|