/PHP-5.6/ext/date/lib/ |
H A D | unixtime2tm.c | 128 tm->m = i + 1; in timelib_unixtime2gmt() 130 tm->h = hours; in timelib_unixtime2gmt() 133 tm->z = 0; in timelib_unixtime2gmt() 134 tm->dst = 0; in timelib_unixtime2gmt() 135 tm->sse = ts; in timelib_unixtime2gmt() 152 timelib_unixtime2gmt(tm, tm->sse - (tm->z * 60) + (tm->dst * 3600)); in timelib_update_from_sse() 161 timelib_unixtime2gmt(tm, tm->sse + gmt_offset->offset); in timelib_update_from_sse() 168 timelib_unixtime2gmt(tm, tm->sse); in timelib_update_from_sse() 175 tm->z = z; in timelib_update_from_sse() 190 timelib_unixtime2gmt(tm, ts - (tm->z * 60) + (tm->dst * 3600)); in timelib_unixtime2local() [all …]
|
H A D | timelib.h | 108 void timelib_unixtime2gmt(timelib_time* tm, timelib_sll ts); 109 void timelib_unixtime2local(timelib_time *tm, timelib_sll ts); 110 void timelib_update_from_sse(timelib_time *tm); 128 void timelib_time_tz_abbr_update(timelib_time* tm, char* tz_abbr); 129 void timelib_time_tz_name_update(timelib_time* tm, char* tz_name); 138 void timelib_time_set_option(timelib_time* tm, int option, void* option_value);
|
H A D | timelib.c | 92 void timelib_time_tz_abbr_update(timelib_time* tm, char* tz_abbr) in timelib_time_tz_abbr_update() argument 97 TIMELIB_TIME_FREE(tm->tz_abbr); in timelib_time_tz_abbr_update() 98 tm->tz_abbr = timelib_strdup(tz_abbr); in timelib_time_tz_abbr_update() 100 tm->tz_abbr[i] = toupper(tz_abbr[i]); in timelib_time_tz_abbr_update()
|
/PHP-5.6/ext/fileinfo/libmagic/ |
H A D | cdf_time.c | 101 struct tm tm; in cdf_timestamp_to_timespec() local 126 tm.tm_mday = cdf_getday(tm.tm_year, (int)t); in cdf_timestamp_to_timespec() 127 tm.tm_mon = cdf_getmonth(tm.tm_year, (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 D | print.c | 82 struct tm *tm; in file_fmttime() local 99 struct tm *tm1; in file_fmttime() 110 tm = gmtime(&t); in file_fmttime() 111 if (tm == NULL) in file_fmttime() 113 pp = asctime_r(tm, buf); in file_fmttime()
|
H A D | file.h | 496 char *asctime_r(const struct tm *, char *);
|
/PHP-5.6/main/ |
H A D | reentrancy.c | 68 PHPAPI char *php_asctime_r(const struct tm *tm, char *buf) in php_asctime_r() argument 84 PHPAPI struct tm *php_localtime_r(const time_t *const timep, struct tm *p_tm) in php_localtime_r() 98 PHPAPI char *php_asctime_r(const struct tm *tm, char *buf) in php_asctime_r() argument 105 PHPAPI struct tm *php_gmtime_r(const time_t *const timep, struct tm *p_tm) in php_gmtime_r() 116 PHPAPI struct tm *php_gmtime_r(const time_t *const timep, struct tm *p_tm) in php_gmtime_r() 176 PHPAPI struct tm *php_localtime_r(const time_t *const timep, struct tm *p_tm) in php_localtime_r() 178 struct tm *tmp; in php_localtime_r() 215 PHPAPI char *php_asctime_r(const struct tm *tm, char *buf) in php_asctime_r() argument 221 tmp = asctime(tm); in php_asctime_r() 233 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 | 63 PHPAPI struct tm *php_localtime_r(const time_t *const timep, struct tm *p_tm); 67 struct tm *localtime_r(const time_t *const timep, struct tm *p_tm); 85 PHPAPI char *php_asctime_r(const struct tm *tm, char *buf); 89 char *asctime_r(const struct tm *tm, char *buf); 96 PHPAPI struct tm *php_gmtime_r(const time_t *const timep, struct tm *p_tm); 100 struct tm *php_gmtime_r(const time_t *const timep, struct tm *p_tm);
|
/PHP-5.6/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-5.6/ext/xmlrpc/libxmlrpc/ |
H A D | xmlrpc.c | 176 static time_t mkgmtime(struct tm *tm) in mkgmtime() argument 180 return ((((((tm->tm_year - 70) * 365) + mdays[tm->tm_mon] + tm->tm_mday-1 + in mkgmtime() 181 (tm->tm_year-68-1+(tm->tm_mon>=2))/4) * 24) + tm->tm_hour) * 60 + in mkgmtime() 182 tm->tm_min) * 60 + tm->tm_sec; in mkgmtime() 186 struct tm tm; in date_from_ISO8601() local 224 tm.tm_mon = 0; in date_from_ISO8601() 230 tm.tm_mon --; in date_from_ISO8601() 231 if(tm.tm_mon < 0 || tm.tm_mon > 11) { in date_from_ISO8601() 252 tm.tm_min = 0; in date_from_ISO8601() 276 struct tm *tm, tmbuf; in date_to_ISO8601() local [all …]
|
H A D | xml_to_soap.c | 521 struct tm *tm = localtime (&tt); in SOAP_to_xml_element_worker() local 523 if(strftime (buf, BUF_SIZE, "%Y-%m-%dT%H:%M:%SZ", tm)) { in SOAP_to_xml_element_worker()
|
/PHP-5.6/ext/standard/ |
H A D | datetime.c | 56 struct tm *tm1, tmbuf; in php_std_date() 81 char *strptime(const char *s, const char *format, struct tm *tm); 92 struct tm parsed_time; in PHP_FUNCTION()
|
H A D | ftp_fopen_wrapper.c | 843 struct tm tm, tmbuf, *gmt; in php_stream_ftp_url_stat() local 854 …n = sscanf(p, "%4u%2u%2u%2u%2u%2u", &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour, &tm.tm_min,… in php_stream_ftp_url_stat() 859 tm.tm_year -= 1900; in php_stream_ftp_url_stat() 860 tm.tm_mon--; in php_stream_ftp_url_stat() 861 tm.tm_isdst = -1; in php_stream_ftp_url_stat() 872 tm.tm_sec += stamp - mktime(gmt); in php_stream_ftp_url_stat() 873 tm.tm_isdst = gmt->tm_isdst; in php_stream_ftp_url_stat() 875 ssb->sb.st_mtime = mktime(&tm); in php_stream_ftp_url_stat()
|
/PHP-5.6/ext/zip/lib/ |
H A D | zip_dirent.c | 584 struct tm *l; in _zip_dirent_torrent_normalize() 768 struct tm tm; in _zip_d2u_time() local 770 memset(&tm, 0, sizeof(tm)); in _zip_d2u_time() 773 tm.tm_isdst = -1; in _zip_d2u_time() 777 tm.tm_mday = ddate&31; in _zip_d2u_time() 780 tm.tm_min = (dtime>>5)&63; in _zip_d2u_time() 783 return mktime(&tm); in _zip_d2u_time() 1018 struct tm *tm; in _zip_u2d_time() local 1020 tm = localtime(&time); in _zip_u2d_time() 1021 *ddate = (zip_uint16_t)(((tm->tm_year+1900-1980)<<9) + ((tm->tm_mon+1)<<5) + tm->tm_mday); in _zip_u2d_time() [all …]
|
/PHP-5.6/ext/pgsql/tests/ |
H A D | 80_bug39971.phpt | 17 pg_query("CREATE TABLE php_test (id SERIAL, tm timestamp NOT NULL)"); 19 $values = array('tm' => 'now()');
|
/PHP-5.6/ext/standard/tests/strings/ |
H A D | strtr_variation7.phpt | 95 string(6) "0120tm" 98 string(6) "0121tm" 128 string(6) "0121tm" 134 string(6) "0121tm"
|
H A D | strtr_variation6.phpt | 107 string(6) "0120tm" 111 string(6) "0120tm" 115 string(6) "0120tm"
|
/PHP-5.6/ext/calendar/ |
H A D | easter.c | 32 struct tm te; in _cal_easter() 39 struct tm b, *res; in _cal_easter()
|
H A D | cal_unix.c | 32 struct tm *ta, tmbuf; in PHP_FUNCTION()
|
/PHP-5.6/ext/ftp/ |
H A D | ftp.c | 993 struct tm *gmt, tmbuf; in ftp_mdtm() 994 struct tm tm; in ftp_mdtm() local 1009 …n = sscanf(ptr, "%4u%2u%2u%2u%2u%2u", &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour, &tm.tm_mi… in ftp_mdtm() 1013 tm.tm_year -= 1900; in ftp_mdtm() 1014 tm.tm_mon--; in ftp_mdtm() 1015 tm.tm_isdst = -1; in ftp_mdtm() 1026 tm.tm_sec += stamp - mktime(gmt); in ftp_mdtm() 1027 tm.tm_isdst = gmt->tm_isdst; in ftp_mdtm() 1029 stamp = mktime(&tm); in ftp_mdtm()
|
/PHP-5.6/ext/phar/ |
H A D | zip.c | 126 struct tm *tm, tmbuf; in phar_zip_d2u_time() local 130 tm = php_localtime_r(&now, &tmbuf); in phar_zip_d2u_time() 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 150 cdate = ((tm->tm_year+1900-1980)<<9) + ((tm->tm_mon+1)<<5) + tm->tm_mday; in phar_zip_u2d_time() [all …]
|
/PHP-5.6/sapi/fpm/fpm/ |
H A D | zlog.c | 69 struct tm t; in zlog_print_time()
|
/PHP-5.6/ext/session/ |
H A D | session.c | 1167 struct tm tm, *res; 1170 res = php_gmtime_r(when, &tm); 1178 week_days[tm.tm_wday], tm.tm_mday, 1179 month_names[tm.tm_mon], tm.tm_year + 1900, 1180 tm.tm_hour, tm.tm_min, 1181 tm.tm_sec);
|
/PHP-5.6/ext/interbase/ |
H A D | php_ibase_udf.c | 216 struct tm t; in call_php()
|
/PHP-5.6/ |
H A D | README.MAILINGLIST_RULES | 12 Collaboration is a Good Thing(tm), and mailinglists lets us do this. Thus,
|