/php-src/ext/date/lib/ |
H A D | unixtime2tm.c | 62 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 D | timelib.c | 121 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 D | timelib_private.h | 175 void timelib_time_tz_abbr_update(timelib_time* tm, const char* tz_abbr);
|
H A D | timelib.h | 685 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-src/ext/fileinfo/libmagic/ |
H A D | cdf_time.c | 101 struct tm tm; in cdf_timestamp_to_timespec() local 125 tm.tm_mday = cdf_getday(tm.tm_year, CAST(int, t)); in cdf_timestamp_to_timespec() 126 tm.tm_mon = cdf_getmonth(tm.tm_year, CAST(int, t)); in cdf_timestamp_to_timespec() 127 tm.tm_wday = 0; in cdf_timestamp_to_timespec() 128 tm.tm_yday = 0; in cdf_timestamp_to_timespec() 129 tm.tm_isdst = 0; in cdf_timestamp_to_timespec() 131 tm.tm_gmtoff = 0; in cdf_timestamp_to_timespec() 134 tm.tm_zone = UTC; in cdf_timestamp_to_timespec() 136 tm.tm_year -= 1900; in cdf_timestamp_to_timespec() 154 struct tm tm; in cdf_timespec_to_timestamp() local [all …]
|
H A D | print.c | 276 struct tm *tm, tmz; in file_fmtdatetime() local 296 if (tm == NULL) in file_fmtdatetime() 298 pp = php_asctime_r(tm, buf); in file_fmtdatetime() 316 struct tm tm; in file_fmtdate() local 318 memset(&tm, 0, sizeof(tm)); in file_fmtdate() 319 tm.tm_mday = v & 0x1f; in file_fmtdate() 321 tm.tm_year = (v >> 9) + 80; in file_fmtdate() 335 struct tm tm; in file_fmttime() local 337 memset(&tm, 0, sizeof(tm)); in file_fmttime() 338 tm.tm_sec = (v & 0x1f) * 2; in file_fmttime() [all …]
|
/php-src/main/ |
H A D | reentrancy.c | 62 PHPAPI char *php_asctime_r(const struct tm *tm, char *buf) in php_asctime_r() argument 64 if (asctime_r(tm, buf) == buf) in php_asctime_r() 78 PHPAPI struct tm *php_localtime_r(const time_t *const timep, struct tm *p_tm) in php_localtime_r() 92 PHPAPI char *php_asctime_r(const struct tm *tm, char *buf) in php_asctime_r() argument 99 PHPAPI struct tm *php_gmtime_r(const time_t *const timep, struct tm *p_tm) in php_gmtime_r() 110 PHPAPI struct tm *php_localtime_r(const time_t *const timep, struct tm *p_tm) in php_localtime_r() 112 struct tm *tmp; in php_localtime_r() 152 PHPAPI char *php_asctime_r(const struct tm *tm, char *buf) in php_asctime_r() argument 158 tmp = asctime(tm); in php_asctime_r() 173 PHPAPI struct tm *php_gmtime_r(const time_t *const timep, struct tm *p_tm) in php_gmtime_r() [all …]
|
H A D | php_reentrancy.h | 52 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-src/ext/date/tests/ |
H A D | bug33869.phpt | 6 $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-src/ext/standard/ |
H A D | datetime.c | 42 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 D | ftp_fopen_wrapper.c | 825 struct tm tm, tmbuf, *gmt; in php_stream_ftp_url_stat() local 836 …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() 841 tm.tm_year -= 1900; in php_stream_ftp_url_stat() 842 tm.tm_mon--; in php_stream_ftp_url_stat() 843 tm.tm_isdst = -1; in php_stream_ftp_url_stat() 854 tm.tm_sec += (long)(stamp - mktime(gmt)); in php_stream_ftp_url_stat() 855 tm.tm_isdst = gmt->tm_isdst; in php_stream_ftp_url_stat() 857 ssb->sb.st_mtime = mktime(&tm); in php_stream_ftp_url_stat()
|
/php-src/ext/pgsql/tests/ |
H A D | 80_bug39971.phpt | 17 pg_query($dbh, "CREATE TABLE {$table_name} (id SERIAL, tm timestamp NOT NULL)"); 19 $values = array('tm' => 'now()');
|
/php-src/ext/openssl/tests/ |
H A D | bug11054.pem | 5 nqx5zlPmcBUA92gAFfSCa+tm/lR2BY5g/20mZX/lMY0xXV1iLhfdK6RgJYXX2SdH
|
/php-src/ext/calendar/ |
H A D | easter.c | 33 struct tm te; in _cal_easter() 47 struct tm b, *res; in _cal_easter()
|
H A D | cal_unix.c | 32 struct tm *ta, tmbuf; in PHP_FUNCTION()
|
/php-src/ext/phar/ |
H A D | zip.c | 158 struct tm *tm, tmbuf; in phar_zip_d2u_time() local 165 tm->tm_mon = ((ddate>>5)&15) - 1; in phar_zip_d2u_time() 166 tm->tm_mday = ddate&31; in phar_zip_d2u_time() 168 tm->tm_hour = (dtime>>11)&31; in phar_zip_d2u_time() 169 tm->tm_min = (dtime>>5)&63; in phar_zip_d2u_time() 170 tm->tm_sec = (dtime<<1)&62; in phar_zip_d2u_time() 172 return mktime(tm); in phar_zip_d2u_time() 179 struct tm *tm, tmbuf; in phar_zip_u2d_time() local 183 if (tm->tm_year >= 80) { in phar_zip_u2d_time() 184 cdate = ((tm->tm_year+1900-1980)<<9) + ((tm->tm_mon+1)<<5) + tm->tm_mday; in phar_zip_u2d_time() [all …]
|
/php-src/ext/ftp/ |
H A D | ftp.c | 1176 struct tm *gmt, tmbuf; in ftp_mdtm() 1177 struct tm tm; in ftp_mdtm() local 1192 …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() 1196 tm.tm_year -= 1900; in ftp_mdtm() 1197 tm.tm_mon--; in ftp_mdtm() 1198 tm.tm_isdst = -1; in ftp_mdtm() 1209 tm.tm_sec += stamp - mktime(gmt); in ftp_mdtm() 1210 tm.tm_isdst = gmt->tm_isdst; in ftp_mdtm() 1212 stamp = mktime(&tm); in ftp_mdtm()
|
/php-src/ext/opcache/jit/ir/dynasm/ |
H A D | dasm_x86.lua | 2035 for tm in gmatch(template, "[^%|]+") do 2036 local s = map_modename[sub(tm, 1, 1)] 2037 s = s..gsub(sub(tm, 2, nparams), ".", function(c) 2046 local function matchtm(tm, args) 2048 if not match(args[i].mode, sub(tm, i, i)) then return end 2084 for tm in gmatch(template, "[^%|]+") do 2086 local szm, pat = match(tm, "^(.-):(.*)$", #args+1) 2088 if matchtm(tm, args) then
|
H A D | minilua.c | 793 if(ttisnil(tm)){ 797 else return tm; 1121 setobj(L,func,tm); 2046 const TValue*tm; 2055 if(tm!=NULL){ 4736 const TValue*tm; 4752 t=tm; 4760 const TValue*tm; 4778 setobj(L,&temp,tm); 4786 if(ttisnil(tm)) [all …]
|
/php-src/ext/session/ |
H A D | session.c | 1253 struct tm tm, *res; in strcpy_gmt() local 1256 res = php_gmtime_r(when, &tm); in strcpy_gmt() 1264 week_days[tm.tm_wday], tm.tm_mday, in strcpy_gmt() 1265 month_names[tm.tm_mon], tm.tm_year + 1900, in strcpy_gmt() 1266 tm.tm_hour, tm.tm_min, in strcpy_gmt() 1267 tm.tm_sec); in strcpy_gmt()
|
/php-src/sapi/litespeed/ |
H A D | lsapilib.c | 250 struct tm tm; in LSAPI_Log() local 252 localtime_r(&tv.tv_sec, &tm); in LSAPI_Log() 256 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, in LSAPI_Log() 257 tm.tm_hour, tm.tm_min, tm.tm_sec, (int)tv.tv_usec); in LSAPI_Log() 262 tm.tm_hour, tm.tm_min, tm.tm_sec); in LSAPI_Log()
|
H A D | lscriu.c | 378 struct tm sTm; in LSCRIU_Restored_Error()
|
/php-src/ext/pdo_firebird/ |
H A D | firebird_statement.c | 87 struct tm t; in get_formatted_time_tz() 115 struct tm t; in get_formatted_timestamp_tz() 513 struct tm t; in pdo_firebird_stmt_get_col()
|
/php-src/docs/ |
H A D | mailinglist-rules.md | 10 Collaboration is a Good Thing(tm), and mailing lists lets us do this. Thus,
|
/php-src/ext/mysqlnd/ |
H A D | mysqlnd_debug.c | 80 struct tm *tm_p; in MYSQLND_METHOD() 167 struct tm *tm_p; in MYSQLND_METHOD()
|