| /PHP_TRUNK/ext/xmlrpc/libxmlrpc/ |
| H A D | xml_to_soap.c | 521 struct tm *tm = localtime (&tt); local 523 if(strftime (buf, BUF_SIZE, "%Y-%m-%dT%H:%M:%SZ", tm)) {
|
| H A D | xmlrpc.c | 176 static time_t mkgmtime(struct tm *tm) argument 180 return ((((((tm->tm_year - 70) * 365) + mdays[tm->tm_mon] + tm->tm_mday-1 + 181 (tm->tm_year-68-1+(tm->tm_mon>=2))/4) * 24) + tm->tm_hour) * 60 + 182 tm->tm_min) * 60 + tm 186 struct tm tm; local 269 struct tm *tm, tmbuf; local [all...] |
| /PHP_TRUNK/ext/date/lib/ |
| H A D | unixtime2tm.c | 40 void timelib_unixtime2gmt(timelib_time* tm, timelib_sll ts) argument 123 tm->y = cur_year; 124 tm->m = i + 1; 125 tm->d = tmp_days - months[i]; 126 tm->h = hours; 127 tm->i = minutes; 128 tm->s = seconds; 129 tm->z = 0; 130 tm->dst = 0; 131 tm 137 timelib_update_from_sse(timelib_time *tm) argument 176 timelib_unixtime2local(timelib_time *tm, timelib_sll ts) argument [all...] |
| H A D | timelib.c | 71 void timelib_time_tz_abbr_update(timelib_time* tm, char* tz_abbr) argument 75 TIMELIB_TIME_FREE(tm->tz_abbr); 76 tm->tz_abbr = strdup(tz_abbr); 78 tm->tz_abbr[i] = toupper(tz_abbr[i]);
|
| /PHP_TRUNK/ext/ftp/ |
| H A D | ftp.c | 992 struct tm *gmt, tmbuf; 993 struct tm tm; local 1008 n = sscanf(ptr, "%4u%2u%2u%2u%2u%2u", &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour, &tm.tm_min, &tm.tm_sec); 1012 tm [all...] |
| /PHP_TRUNK/ext/standard/ |
| H A D | ftp_fopen_wrapper.c | 835 struct tm tm, tmbuf, *gmt; local 846 n = sscanf(p, "%4u%2u%2u%2u%2u%2u", &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour, &tm.tm_min, &tm.tm_sec); 851 tm.tm_year -= 1900; 852 tm [all...] |
| H A D | basic_functions.c | 4521 struct timeval tm; local 4528 if (gettimeofday((struct timeval *) &tm, NULL) != 0) { 4532 c_ts = (double)(d_ts - tm.tv_sec - tm.tv_usec / 1000000.00);
|
| /PHP_TRUNK/main/ |
| H A D | reentrancy.c | 68 PHPAPI char *php_asctime_r(const struct tm *tm, char *buf) argument 70 if (asctime_r(tm, buf) == buf) 84 PHPAPI struct tm *php_localtime_r(const time_t *const timep, struct tm *p_tm) 98 PHPAPI char *php_asctime_r(const struct tm *tm, char *buf) argument 100 if (asctime_r(tm, buf, 26) != -1) 105 PHPAPI struct tm *php_gmtime_r(const time_t *const timep, struct tm *p_t 215 php_asctime_r(const struct tm *tm, char *buf) argument [all...] |
| /PHP_TRUNK/ext/session/ |
| H A D | session.c | 1024 struct tm tm, *res; local 1027 res = php_gmtime_r(when, &tm); 1035 week_days[tm.tm_wday], tm.tm_mday, 1036 month_names[tm.tm_mon], tm.tm_year + 1900, 1037 tm.tm_hour, tm.tm_min, 1038 tm [all...] |
| /PHP_TRUNK/ext/zip/lib/ |
| H A D | zip_dirent.c | 373 static struct tm torrenttime; 379 struct tm *l; 492 struct tm tm; 494 memset(&tm, 0, sizeof(tm)); 497 tm.tm_isdst = -1; 499 tm.tm_year = ((ddate>>9)&127) + 1980 - 1900; 500 tm.tm_mon = ((ddate>>5)&15) - 1; 501 tm 481 struct tm tm; local 611 struct tm *tm; local [all...] |
| /PHP_TRUNK/sapi/cli/ |
| H A D | php_cli_server.c | 319 struct tm tm; local 323 /* TODO: should be checked for NULL tm/return vaue */ 324 php_localtime_r(&tv.tv_sec, &tm); 325 php_asctime_r(&tm, buf);
|
| /PHP_TRUNK/ext/fileinfo/libmagic/ |
| H A D | cdf_time.c | 101 struct tm tm; local 112 tm.tm_sec = (int)(t % 60); 115 tm.tm_min = (int)(t % 60); 118 tm.tm_hour = (int)(t % 24); 122 tm.tm_year = (int)(CDF_BASE_YEAR + (t / 365)); 124 rdays = cdf_getdays(tm.tm_year); 126 tm.tm_mday = cdf_getday(tm.tm_year, (int)t); 127 tm 155 struct tm tm; local [all...] |
| H A D | print.c | 79 struct tm *tm; local 96 struct tm *tm1; 107 tm = gmtime(&t); 108 if (tm == NULL) 110 pp = asctime_r(tm, buf);
|
| /PHP_TRUNK/ext/phar/ |
| H A D | zip.c | 126 struct tm *tm, tmbuf; local 130 tm = php_localtime_r(&now, &tmbuf); 132 tm->tm_year = ((ddate>>9)&127) + 1980 - 1900; 133 tm->tm_mon = ((ddate>>5)&15) - 1; 134 tm->tm_mday = ddate&31; 136 tm->tm_hour = (dtime>>11)&31; 137 tm->tm_min = (dtime>>5)&63; 138 tm->tm_sec = (dtime<<1)&62; 140 return mktime(tm); 147 struct tm *tm, tmbuf; local [all...] |