Home
last modified time | relevance | path

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

12

/PHP-8.2/ext/date/lib/
H A Dunixtime2tm.c62 timelib_unixtime2date(ts, &tm->y, &tm->m, &tm->d); in timelib_unixtime2gmt()
72 tm->h = hours; in timelib_unixtime2gmt()
75 tm->z = 0; in timelib_unixtime2gmt()
76 tm->dst = 0; in timelib_unixtime2gmt()
77 tm->sse = ts; in timelib_unixtime2gmt()
94 timelib_unixtime2gmt(tm, tm->sse + tm->z + (tm->dst * 3600)); in timelib_update_from_sse()
103 timelib_unixtime2gmt(tm, tm->sse + offset); in timelib_update_from_sse()
109 timelib_unixtime2gmt(tm, tm->sse); in timelib_update_from_sse()
116 tm->z = z; in timelib_update_from_sse()
131 timelib_unixtime2gmt(tm, ts + tm->z + (tm->dst * 3600)); in timelib_unixtime2local()
[all …]
H A Dtimelib.c121 void timelib_time_tz_abbr_update(timelib_time* tm, const char* tz_abbr) in timelib_time_tz_abbr_update() argument
126 TIMELIB_TIME_FREE(tm->tz_abbr); in timelib_time_tz_abbr_update()
127 tm->tz_abbr = timelib_strdup(tz_abbr); in timelib_time_tz_abbr_update()
129 tm->tz_abbr[i] = toupper(tz_abbr[i]); in timelib_time_tz_abbr_update()
H A Dtimelib_private.h166 void timelib_time_tz_abbr_update(timelib_time* tm, const char* tz_abbr);
H A Dtimelib.h685 void timelib_unixtime2gmt(timelib_time* tm, timelib_sll ts);
691 void timelib_unixtime2local(timelib_time *tm, timelib_sll ts);
697 void timelib_update_from_sse(timelib_time *tm);
/PHP-8.2/ext/fileinfo/libmagic/
H A Dcdf_time.c102 struct tm tm; in cdf_timestamp_to_timespec() local
126 tm.tm_mday = cdf_getday(tm.tm_year, CAST(int, t)); in cdf_timestamp_to_timespec()
127 tm.tm_mon = cdf_getmonth(tm.tm_year, CAST(int, t)); in cdf_timestamp_to_timespec()
128 tm.tm_wday = 0; in cdf_timestamp_to_timespec()
129 tm.tm_yday = 0; in cdf_timestamp_to_timespec()
130 tm.tm_isdst = 0; in cdf_timestamp_to_timespec()
132 tm.tm_gmtoff = 0; in cdf_timestamp_to_timespec()
135 tm.tm_zone = UTC; in cdf_timestamp_to_timespec()
137 tm.tm_year -= 1900; in cdf_timestamp_to_timespec()
155 struct tm tm; in cdf_timespec_to_timestamp() local
[all …]
H A Dprint.c248 struct tm *tm, tmz; in file_fmttime() local
261 tm = php_localtime_r(&t, &tmz); in file_fmttime()
263 tm = php_gmtime_r(&t, &tmz); in file_fmttime()
265 if (tm == NULL) in file_fmttime()
267 pp = php_asctime_r(tm, buf); in file_fmttime()
/PHP-8.2/main/
H A Dreentrancy.c63 PHPAPI char *php_asctime_r(const struct tm *tm, char *buf) in php_asctime_r() argument
65 if (asctime_r(tm, buf) == buf) in php_asctime_r()
79 PHPAPI struct tm *php_localtime_r(const time_t *const timep, struct tm *p_tm) in php_localtime_r()
93 PHPAPI char *php_asctime_r(const struct tm *tm, char *buf) in php_asctime_r() argument
100 PHPAPI struct tm *php_gmtime_r(const time_t *const timep, struct tm *p_tm) in php_gmtime_r()
111 PHPAPI struct tm *php_localtime_r(const time_t *const timep, struct tm *p_tm) in php_localtime_r()
113 struct tm *tmp; in php_localtime_r()
153 PHPAPI char *php_asctime_r(const struct tm *tm, char *buf) in php_asctime_r() argument
159 tmp = asctime(tm); in php_asctime_r()
174 PHPAPI struct tm *php_gmtime_r(const time_t *const timep, struct tm *p_tm) in php_gmtime_r()
[all …]
H A Dphp_reentrancy.h52 PHPAPI struct tm *php_localtime_r(const time_t *const timep, struct tm *p_tm);
56 struct tm *localtime_r(const time_t *const timep, struct tm *p_tm);
74 PHPAPI char *php_asctime_r(const struct tm *tm, char *buf);
78 char *asctime_r(const struct tm *tm, char *buf);
85 PHPAPI struct tm *php_gmtime_r(const time_t *const timep, struct tm *p_tm);
89 struct tm *php_gmtime_r(const time_t *const timep, struct tm *p_tm);
/PHP-8.2/ext/date/tests/
H A Dbug33869.phpt6 $tm = strtotime("2005-01-01 01:01:01");
7 echo date(DATE_ISO8601, strtotime('+5days', $tm));
9 echo date(DATE_ISO8601, strtotime('+1month', $tm));
11 echo date(DATE_ISO8601, strtotime('+1year', $tm));
13 echo date(DATE_ISO8601, strtotime('+5 days', $tm));
15 echo date(DATE_ISO8601, strtotime('+1 month', $tm));
17 echo date(DATE_ISO8601, strtotime('+1 year', $tm));
/PHP-8.2/ext/standard/
H A Ddatetime.c42 struct tm *tm1, tmbuf; in php_std_date()
67 char *strptime(const char *s, const char *format, struct tm *tm);
77 struct tm parsed_time; in PHP_FUNCTION()
H A Dftp_fopen_wrapper.c826 struct tm tm, tmbuf, *gmt; in php_stream_ftp_url_stat() local
837 …n = sscanf(p, "%4d%2d%2d%2d%2d%2d", &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour, &tm.tm_min,… in php_stream_ftp_url_stat()
842 tm.tm_year -= 1900; in php_stream_ftp_url_stat()
843 tm.tm_mon--; in php_stream_ftp_url_stat()
844 tm.tm_isdst = -1; in php_stream_ftp_url_stat()
855 tm.tm_sec += (long)(stamp - mktime(gmt)); in php_stream_ftp_url_stat()
856 tm.tm_isdst = gmt->tm_isdst; in php_stream_ftp_url_stat()
858 ssb->sb.st_mtime = mktime(&tm); in php_stream_ftp_url_stat()
H A Dconfig.m4390 int strptime(const char *s, const char *format, struct tm *tm);
/PHP-8.2/ext/pgsql/tests/
H A D80_bug39971.phpt19 pg_query($dbh, "CREATE TABLE php_test (id SERIAL, tm timestamp NOT NULL)");
21 $values = array('tm' => 'now()');
/PHP-8.2/ext/calendar/
H A Deaster.c28 struct tm te; in _cal_easter()
41 struct tm b, *res; in _cal_easter()
H A Dcal_unix.c32 struct tm *ta, tmbuf; in PHP_FUNCTION()
/PHP-8.2/ext/phar/
H A Dzip.c126 struct tm *tm, tmbuf; in phar_zip_d2u_time() local
133 tm->tm_mon = ((ddate>>5)&15) - 1; in phar_zip_d2u_time()
134 tm->tm_mday = ddate&31; in phar_zip_d2u_time()
136 tm->tm_hour = (dtime>>11)&31; in phar_zip_d2u_time()
137 tm->tm_min = (dtime>>5)&63; in phar_zip_d2u_time()
138 tm->tm_sec = (dtime<<1)&62; in phar_zip_d2u_time()
140 return mktime(tm); in phar_zip_d2u_time()
147 struct tm *tm, tmbuf; in phar_zip_u2d_time() local
151 if (tm->tm_year >= 80) { in phar_zip_u2d_time()
152 cdate = ((tm->tm_year+1900-1980)<<9) + ((tm->tm_mon+1)<<5) + tm->tm_mday; in phar_zip_u2d_time()
[all …]
/PHP-8.2/ext/ftp/
H A Dftp.c1156 struct tm *gmt, tmbuf; in ftp_mdtm()
1157 struct tm tm; in ftp_mdtm() local
1172 …n = sscanf(ptr, "%4d%2d%2d%2d%2d%2d", &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour, &tm.tm_mi… in ftp_mdtm()
1176 tm.tm_year -= 1900; in ftp_mdtm()
1177 tm.tm_mon--; in ftp_mdtm()
1178 tm.tm_isdst = -1; in ftp_mdtm()
1189 tm.tm_sec += stamp - mktime(gmt); in ftp_mdtm()
1190 tm.tm_isdst = gmt->tm_isdst; in ftp_mdtm()
1192 stamp = mktime(&tm); in ftp_mdtm()
/PHP-8.2/ext/opcache/jit/dynasm/
H A Ddasm_x86.lua2031 for tm in gmatch(template, "[^%|]+") do
2032 local s = map_modename[sub(tm, 1, 1)]
2033 s = s..gsub(sub(tm, 2, nparams), ".", function(c)
2042 local function matchtm(tm, args)
2044 if not match(args[i].mode, sub(tm, i, i)) then return end
2080 for tm in gmatch(template, "[^%|]+") do
2082 local szm, pat = match(tm, "^(.-):(.*)$", #args+1)
2084 if matchtm(tm, args) then
H A Dminilua.c793 if(ttisnil(tm)){
797 else return tm;
1121 setobj(L,func,tm);
2045 const TValue*tm;
2054 if(tm!=NULL){
4735 const TValue*tm;
4751 t=tm;
4759 const TValue*tm;
4777 setobj(L,&temp,tm);
4785 if(ttisnil(tm))
[all …]
/PHP-8.2/ext/session/
H A Dsession.c1123 struct tm tm, *res; in strcpy_gmt() local
1126 res = php_gmtime_r(when, &tm); in strcpy_gmt()
1134 week_days[tm.tm_wday], tm.tm_mday, in strcpy_gmt()
1135 month_names[tm.tm_mon], tm.tm_year + 1900, in strcpy_gmt()
1136 tm.tm_hour, tm.tm_min, in strcpy_gmt()
1137 tm.tm_sec); in strcpy_gmt()
/PHP-8.2/sapi/litespeed/
H A Dlsapilib.c249 struct tm tm; in LSAPI_Log() local
251 localtime_r(&tv.tv_sec, &tm); in LSAPI_Log()
255 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, in LSAPI_Log()
256 tm.tm_hour, tm.tm_min, tm.tm_sec, (int)tv.tv_usec); in LSAPI_Log()
261 tm.tm_hour, tm.tm_min, tm.tm_sec); in LSAPI_Log()
H A Dlscriu.c378 struct tm sTm; in LSCRIU_Restored_Error()
/PHP-8.2/ext/fileinfo/
H A Dlibmagic.patch1308 struct tm tm;
1309 - if (gmtime_r(&ts->ts_sec, &tm) == NULL) {
1753 -struct tm *gmtime_r(const time_t *, struct tm *);
1756 -struct tm *localtime_r(const time_t *, struct tm *);
2960 - tm = localtime_r(&t, &tmz);
2961 + tm = php_localtime_r(&t, &tmz);
2963 - tm = gmtime_r(&t, &tmz);
2964 + tm = php_gmtime_r(&t, &tmz);
2966 if (tm == NULL)
2968 - pp = asctime_r(tm, buf);
[all …]
/PHP-8.2/docs/
H A Dmailinglist-rules.md10 Collaboration is a Good Thing(tm), and mailing lists lets us do this. Thus,
/PHP-8.2/ext/mysqlnd/
H A Dmysqlnd_debug.c92 struct tm *tm_p; in MYSQLND_METHOD()
189 struct tm *tm_p; in MYSQLND_METHOD()

Completed in 132 milliseconds

12