Home
last modified time | relevance | path

Searched refs:tm (Results 1 – 17 of 17) sorted by relevance

/lighttpd1.4/src/
H A Dhttp_date.c42 http_date_parse_RFC_850 (const char *s, struct tm * const tm) in http_date_parse_RFC_850() argument
70 tm->tm_isdst = 0; in http_date_parse_RFC_850()
71 tm->tm_yday = 0; in http_date_parse_RFC_850()
72 tm->tm_wday = 0; in http_date_parse_RFC_850()
73 tm->tm_mon = 0; in http_date_parse_RFC_850()
103 if (tm->tm_year > tm_year_cur + 50) tm->tm_year -= 100; in http_date_parse_RFC_850()
126 http_date_parse_asctime (const char * const s, struct tm * const tm) in http_date_parse_asctime() argument
134 tm->tm_mon = 0; in http_date_parse_asctime()
188 tm->tm_mon = 0; in http_date_parse_IMF_fixdate()
238 struct tm * const tm) in http_date_str_to_tm() argument
[all …]
H A Dsys-time.h33 #define timegm(tm) _mkgmtime(tm) argument
37 timegm (const struct tm * const tm);
39 timegm (const struct tm * const tm) in timegm() argument
41 int y = tm->tm_year + 1900; in timegm()
42 int m = tm->tm_mon + 1; in timegm()
43 int d = tm->tm_mday; in timegm()
53 return 60*(60*(24L*days_since_1970+tm->tm_hour)+tm->tm_min)+tm->tm_sec; in timegm()
88 static inline struct tm *
90 static inline struct tm *
124 static inline struct tm *
[all …]
H A Dlog.c105 struct tm tm; in log_buffer_tstr() local
108 localtime64_r(&tlast, &tm)); in log_buffer_tstr()
H A Dbuffer.h5 struct tm; /* declaration */
128 …_append_strftime(buffer * restrict b, const char * restrict format, const struct tm * restrict tm);
H A Dbuffer.c326 …ffer * const restrict b, const char * const restrict format, const struct tm * const restrict tm) { in buffer_append_strftime() argument
328 if (__builtin_expect( (NULL == tm), 0)) return; in buffer_append_strftime()
332 size_t rv = strftime(buffer_string_prepare_append(b, 63), 64, format, tm); in buffer_append_strftime()
338 rv = strftime(buffer_string_prepare_append(b, 4095), 4096, format, tm); in buffer_append_strftime()
H A Dmod_accesslog.c719 struct tm tm; in accesslog_append_time() local
740 localtime64_r(&t, &tm)); in accesslog_append_time()
744 gmtime64_r(&t, &tm)); in accesslog_append_time()
H A Dmod_mbedtls.c1053 struct tm tm; in network_mbedtls_load_pemfile()
1054 memset(&tm, 0, sizeof(tm)); in network_mbedtls_load_pemfile()
1056 tm.tm_sec = notAfter->sec; in network_mbedtls_load_pemfile()
1057 tm.tm_min = notAfter->min; in network_mbedtls_load_pemfile()
1058 tm.tm_hour = notAfter->hour; in network_mbedtls_load_pemfile()
1059 tm.tm_mday = notAfter->day; in network_mbedtls_load_pemfile()
1060 tm.tm_mon = notAfter->mon; in network_mbedtls_load_pemfile()
1061 tm.tm_year = notAfter->year; in network_mbedtls_load_pemfile()
1062 pc->notAfter = TIME64_CAST(timegm(&tm)); in network_mbedtls_load_pemfile()
H A Dmod_status.c434 struct tm tm; in mod_status_handle_server_status_html() local
435 buffer_append_strftime(b, "%F %T", localtime64_r(&ts, &tm)); in mod_status_handle_server_status_html()
H A Dmod_dirlisting.c1146 struct tm tm; in http_list_directory() local
1168 buffer_append_strftime(out, "%Y-%b-%d %T", localtime64_r(&tmp->mtime, &tm)); in http_list_directory()
1209 buffer_append_strftime(out, "%Y-%b-%d %T", localtime64_r(&tmp->mtime, &tm)); in http_list_directory()
H A Dmod_ssi.c572 struct tm tm; in mod_ssi_timefmt() local
577 ? localtime64_r(&t, &tm) in mod_ssi_timefmt()
578 : gmtime64_r(&t, &tm)); in mod_ssi_timefmt()
H A Dmeson.build226 struct tm t;
231 name: 'struct tm gmt offset',
H A Dmod_webdav.c3432 struct tm tm; in webdav_propfind_live_props()
3433 if (__builtin_expect( (NULL != gmtime64_r(&pb->st.st_ctime, &tm)), 1)) { in webdav_propfind_live_props()
3436 buffer_append_strftime(b, "%FT%TZ", &tm)); in webdav_propfind_live_props()
H A DCMakeLists.txt287 struct tm t;
H A Dmod_openssl.c1461 struct tm x; in mod_openssl_asn1_time_to_posix()
/lighttpd1.4/
H A DSConstruct162 struct tm a;
167 context.Message('Checking for tm_gmtoff in struct tm...')
H A Dconfigure.ac125 AC_CHECK_MEMBER([struct tm.tm_gmtoff],
126 [AC_DEFINE([HAVE_STRUCT_TM_GMTOFF], [1], [gmtoff in struct tm])],
H A DNEWS2896 * [autobuild] CMake check for struct tm tm_gmtoff (fixes #2014)
3185 * Set tm.tm_isdst = 0 before mktime() (fixes #2047)