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

/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dcdf_time.c101 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 Dprint.c79 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/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
272 struct tm *tm, tmbuf; local
[all...]
/PHP_TRUNK/ext/zip/lib/
H A Dzip_dirent.c593 static struct tm torrenttime;
599 struct tm *l;
785 struct tm tm;
787 memset(&tm, 0, sizeof(tm));
790 tm.tm_isdst = -1;
792 tm.tm_year = ((ddate>>9)&127) + 1980 - 1900;
793 tm.tm_mon = ((ddate>>5)&15) - 1;
794 tm
768 struct tm tm; local
1018 struct tm *tm; local
[all...]
/PHP_TRUNK/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...]
/PHP_TRUNK/ext/date/lib/
H A Dtimelib.c71 void timelib_time_tz_abbr_update(timelib_time* tm, char* tz_abbr) argument
76 TIMELIB_TIME_FREE(tm->tz_abbr);
77 tm->tz_abbr = strdup(tz_abbr);
79 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
175 timelib_unixtime2local(timelib_time *tm, timelib_sll ts) argument
[all...]
/PHP_TRUNK/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_TRUNK/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_TRUNK/ext/session/
H A Dsession.c1128 struct tm tm, *res; local
1131 res = php_gmtime_r(when, &tm);
1139 week_days[tm.tm_wday], tm.tm_mday,
1140 month_names[tm.tm_mon], tm.tm_year + 1900,
1141 tm.tm_hour, tm.tm_min,
1142 tm
[all...]
/PHP_TRUNK/sapi/cli/
H A Dphp_cli_server.c302 struct tm tm; local
306 /* TODO: should be checked for NULL tm/return vaue */
307 php_localtime_r(&tv.tv_sec, &tm);
308 php_asctime_r(&tm, buf);
/PHP_TRUNK/ext/standard/
H A Dbasic_functions.c4473 struct timeval tm; local
4480 if (gettimeofday((struct timeval *) &tm, NULL) != 0) {
4484 c_ts = (double)(d_ts - tm.tv_sec - tm.tv_usec / 1000000.00);
H A Dftp_fopen_wrapper.c829 struct tm tm, tmbuf, *gmt; local
840 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);
845 tm.tm_year -= 1900;
846 tm
[all...]

Completed in 27 milliseconds