Home
last modified time | relevance | path

Searched refs:tm (Results 1 – 14 of 14) sorted by path

/unit/auto/
H A Dtime177 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/
H A Dnxt_app_log.c13 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 Dnxt_controller.c108 struct tm *tm, size_t size, const char *format);
2129 nxt_controller_date(u_char *buf, nxt_realtime_t *now, struct tm *tm, in nxt_controller_date() argument
2139 week[tm->tm_wday], tm->tm_mday, in nxt_controller_date()
2140 month[tm->tm_mon], tm->tm_year + 1900, in nxt_controller_date()
2141 tm->tm_hour, tm->tm_min, tm->tm_sec); in nxt_controller_date()
H A Dnxt_gmtime.c13 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 Dnxt_http.h293 nxt_http_date(u_char *buf, struct tm *tm) in nxt_http_date() argument
303 week[tm->tm_wday], tm->tm_mday, in nxt_http_date()
304 month[tm->tm_mon], tm->tm_year + 1900, in nxt_http_date()
305 tm->tm_hour, tm->tm_min, tm->tm_sec); in nxt_http_date()
H A Dnxt_http_request.c29 struct tm *tm, size_t size, const char *format);
841 nxt_http_date_cache_handler(u_char *buf, nxt_realtime_t *now, struct tm *tm, in nxt_http_date_cache_handler() argument
844 return nxt_http_date(buf, tm); in nxt_http_date_cache_handler()
H A Dnxt_http_static.c301 struct tm tm; in nxt_http_static_send_ready() local
524 nxt_localtime(nxt_file_mtime(&fi), &tm); in nxt_http_static_send_ready()
527 field->value_length = nxt_http_date(p, &tm) - p; in nxt_http_static_send_ready()
H A Dnxt_http_variables.c25 struct tm *tm, size_t size, const char *format);
213 nxt_http_log_date(u_char *buf, nxt_realtime_t *now, struct tm *tm, in nxt_http_log_date() argument
222 gmtoff = nxt_timezone(tm) / 60; in nxt_http_log_date()
233 tm->tm_mday, month[tm->tm_mon], tm->tm_year + 1900, in nxt_http_log_date()
234 tm->tm_hour, tm->tm_min, tm->tm_sec, in nxt_http_log_date()
H A Dnxt_thread_time.c229 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 Dnxt_thread_time.h21 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 Dnxt_time.c264 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 Dnxt_time.h40 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 Dnxt_unit.c6670 struct tm tm; in nxt_unit_snprint_prefix() local
6676 (void) localtime_r(&ts.tv_sec, &tm); in nxt_unit_snprint_prefix()
6678 tm = *localtime(&ts.tv_sec); in nxt_unit_snprint_prefix()
6684 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, in nxt_unit_snprint_prefix()
6685 tm.tm_hour, tm.tm_min, tm.tm_sec, in nxt_unit_snprint_prefix()
6690 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, in nxt_unit_snprint_prefix()
6691 tm.tm_hour, tm.tm_min, tm.tm_sec); in nxt_unit_snprint_prefix()
/unit/src/test/
H A Dnxt_gmtime_test.c28 struct tm tm0, *tm1; in nxt_gmtime_test()