Searched defs:tm (Results 1 - 13 of 13) sorted by relevance

/PHP_5_3/ext/xmlrpc/libxmlrpc/
H A Dxml_to_soap.c521 struct tm *tm = localtime (&tt); local
523 if(strftime (buf, BUF_SIZE, "%Y-%m-%dT%H:%M:%SZ", tm)) {
H A Dxmlrpc.c176 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_5_3/ext/fileinfo/libmagic/
H A Dcdf_time.c101 struct tm tm; local
111 tm.tm_sec = (int)(t % 60);
114 tm.tm_min = (int)(t % 60);
117 tm.tm_hour = (int)(t % 24);
121 tm.tm_year = (int)(CDF_BASE_YEAR + (t / 365));
123 rdays = cdf_getdays(tm.tm_year);
125 tm.tm_mday = cdf_getday(tm.tm_year, (int)t);
126 tm
154 struct tm tm; local
[all...]
H A Dprint.c73 struct tm *tm; local
84 struct tm *tm1;
95 tm = gmtime(&t);
96 if (tm == NULL)
98 pp = asctime(tm);
/PHP_5_3/ext/date/lib/
H A Dtimelib.c69 void timelib_time_tz_abbr_update(timelib_time* tm, char* tz_abbr) argument
73 TIMELIB_TIME_FREE(tm->tz_abbr);
74 tm->tz_abbr = strdup(tz_abbr);
76 tm->tz_abbr[i] = toupper(tz_abbr[i]);
H A Dunixtime2tm.c40 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...]
/PHP_5_3/ext/ftp/
H A Dftp.c988 struct tm *gmt, tmbuf;
989 struct tm tm; local
1004 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);
1008 tm
[all...]
/PHP_5_3/ext/session/
H A Dsession.c1086 struct tm tm, *res; local
1089 res = php_gmtime_r(when, &tm);
1097 week_days[tm.tm_wday], tm.tm_mday,
1098 month_names[tm.tm_mon], tm.tm_year + 1900,
1099 tm.tm_hour, tm.tm_min,
1100 tm
[all...]
/PHP_5_3/ext/standard/
H A Dftp_fopen_wrapper.c836 struct tm tm, tmbuf, *gmt; local
847 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);
852 tm.tm_year -= 1900;
853 tm
[all...]
H A Dbasic_functions.c4530 struct timeval tm; local
4537 if (gettimeofday((struct timeval *) &tm, NULL) != 0) {
4541 c_ts = (double)(d_ts - tm.tv_sec - tm.tv_usec / 1000000.00);
/PHP_5_3/main/
H A Dreentrancy.c68 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_5_3/ext/zip/lib/
H A Dzip_dirent.c373 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_5_3/ext/phar/
H A Dzip.c126 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...]

Completed in 45 milliseconds