Home
last modified time | relevance | path

Searched refs:tm (Results 1 – 25 of 50) sorted by relevance

12

/PHP-7.3/ext/date/lib/
H A Dunixtime2tm.c106 tm->m = i + 1; in timelib_unixtime2gmt()
108 tm->h = hours; in timelib_unixtime2gmt()
111 tm->z = 0; in timelib_unixtime2gmt()
112 tm->dst = 0; in timelib_unixtime2gmt()
113 tm->sse = ts; in timelib_unixtime2gmt()
130 timelib_unixtime2gmt(tm, tm->sse + tm->z + (tm->dst * 3600)); in timelib_update_from_sse()
139 timelib_unixtime2gmt(tm, tm->sse + gmt_offset->offset); in timelib_update_from_sse()
146 timelib_unixtime2gmt(tm, tm->sse); in timelib_update_from_sse()
153 tm->z = z; in timelib_update_from_sse()
168 timelib_unixtime2gmt(tm, ts + tm->z + (tm->dst * 3600)); in timelib_unixtime2local()
[all …]
H A Dtimelib.c118 void timelib_time_tz_abbr_update(timelib_time* tm, char* tz_abbr) in timelib_time_tz_abbr_update() argument
123 TIMELIB_TIME_FREE(tm->tz_abbr); in timelib_time_tz_abbr_update()
124 tm->tz_abbr = timelib_strdup(tz_abbr); in timelib_time_tz_abbr_update()
126 tm->tz_abbr[i] = toupper(tz_abbr[i]); in timelib_time_tz_abbr_update()
H A Dtimelib_private.h134 void timelib_time_tz_abbr_update(timelib_time* tm, char* tz_abbr);
H A Dtimelib.h617 void timelib_unixtime2gmt(timelib_time* tm, timelib_sll ts);
623 void timelib_unixtime2local(timelib_time *tm, timelib_sll ts);
629 void timelib_update_from_sse(timelib_time *tm);
/PHP-7.3/ext/fileinfo/libmagic/
H A Dcdf_time.c102 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 Dprint.c238 struct tm *tm, tmz; in file_fmttime() local
251 tm = php_localtime_r(&t, &tmz); in file_fmttime()
253 tm = php_gmtime_r(&t, &tmz); in file_fmttime()
255 if (tm == NULL) in file_fmttime()
257 pp = php_asctime_r(tm, buf); in file_fmttime()
/PHP-7.3/main/
H A Dphp_reentrancy.h61 PHPAPI struct tm *php_localtime_r(const time_t *const timep, struct tm *p_tm);
65 struct tm *localtime_r(const time_t *const timep, struct tm *p_tm);
83 PHPAPI char *php_asctime_r(const struct tm *tm, char *buf);
87 char *asctime_r(const struct tm *tm, char *buf);
94 PHPAPI struct tm *php_gmtime_r(const time_t *const timep, struct tm *p_tm);
98 struct tm *php_gmtime_r(const time_t *const timep, struct tm *p_tm);
H A Dreentrancy.c66 PHPAPI char *php_asctime_r(const struct tm *tm, char *buf) in php_asctime_r() argument
68 if (asctime_r(tm, buf) == buf) in php_asctime_r()
82 PHPAPI struct tm *php_localtime_r(const time_t *const timep, struct tm *p_tm) in php_localtime_r()
96 PHPAPI char *php_asctime_r(const struct tm *tm, char *buf) in php_asctime_r() argument
103 PHPAPI struct tm *php_gmtime_r(const time_t *const timep, struct tm *p_tm) in php_gmtime_r()
162 PHPAPI struct tm *php_localtime_r(const time_t *const timep, struct tm *p_tm) in php_localtime_r()
164 struct tm *tmp; in php_localtime_r()
204 PHPAPI char *php_asctime_r(const struct tm *tm, char *buf) in php_asctime_r() argument
210 tmp = asctime(tm); in php_asctime_r()
225 PHPAPI struct tm *php_gmtime_r(const time_t *const timep, struct tm *p_tm) in php_gmtime_r()
[all …]
/PHP-7.3/ext/date/tests/
H A Dbug33869.phpt6 $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-7.3/ext/standard/
H A Ddatetime.c44 struct tm *tm1, tmbuf; in php_std_date()
69 char *strptime(const char *s, const char *format, struct tm *tm);
80 struct tm parsed_time; in PHP_FUNCTION()
H A Dftp_fopen_wrapper.c838 struct tm tm, tmbuf, *gmt; in php_stream_ftp_url_stat() local
849 …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()
854 tm.tm_year -= 1900; in php_stream_ftp_url_stat()
855 tm.tm_mon--; in php_stream_ftp_url_stat()
856 tm.tm_isdst = -1; in php_stream_ftp_url_stat()
867 tm.tm_sec += (long)(stamp - mktime(gmt)); in php_stream_ftp_url_stat()
868 tm.tm_isdst = gmt->tm_isdst; in php_stream_ftp_url_stat()
870 ssb->sb.st_mtime = mktime(&tm); in php_stream_ftp_url_stat()
/PHP-7.3/ext/xmlrpc/libxmlrpc/
H A Dxmlrpc.c173 static time_t mkgmtime(struct tm *tm) in mkgmtime() argument
177 return ((((((tm->tm_year - 70) * 365) + mdays[tm->tm_mon] + tm->tm_mday-1 + in mkgmtime()
178 (tm->tm_year-68-1+(tm->tm_mon>=2))/4) * 24) + tm->tm_hour) * 60 + in mkgmtime()
179 tm->tm_min) * 60 + tm->tm_sec; in mkgmtime()
183 struct tm tm; in date_from_ISO8601() local
221 tm.tm_mon = 0; in date_from_ISO8601()
227 tm.tm_mon --; in date_from_ISO8601()
228 if(tm.tm_mon < 0 || tm.tm_mon > 11) { in date_from_ISO8601()
249 tm.tm_min = 0; in date_from_ISO8601()
273 struct tm *tm, tmbuf; in date_to_ISO8601() local
[all …]
H A Dxml_to_soap.c518 struct tm *tm = localtime (&tt); in SOAP_to_xml_element_worker() local
520 if(strftime (buf, BUF_SIZE, "%Y-%m-%dT%H:%M:%SZ", tm)) { in SOAP_to_xml_element_worker()
/PHP-7.3/ext/zip/lib/
H A Dzip_dirent.c810 struct tm tm; in _zip_d2u_time() local
812 memset(&tm, 0, sizeof(tm)); in _zip_d2u_time()
815 tm.tm_isdst = -1; in _zip_d2u_time()
819 tm.tm_mday = ddate&31; in _zip_d2u_time()
825 return mktime(&tm); in _zip_d2u_time()
901 struct tm *tm; in _zip_u2d_time() local
903 tm = localtime(&intime); in _zip_u2d_time()
904 if (tm->tm_year < 80) { in _zip_u2d_time()
905 tm->tm_year = 80; in _zip_u2d_time()
908 *ddate = (zip_uint16_t)(((tm->tm_year+1900-1980)<<9) + ((tm->tm_mon+1)<<5) + tm->tm_mday); in _zip_u2d_time()
[all …]
/PHP-7.3/ext/pgsql/tests/
H A D80_bug39971.phpt17 pg_query("CREATE TABLE php_test (id SERIAL, tm timestamp NOT NULL)");
19 $values = array('tm' => 'now()');
/PHP-7.3/ext/standard/tests/strings/
H A Dstrtr_variation7.phpt95 string(6) "0120tm"
98 string(6) "0121tm"
128 string(6) "0121tm"
134 string(6) "0121tm"
H A Dstrtr_variation6.phpt107 string(6) "0120tm"
111 string(6) "0120tm"
115 string(6) "0120tm"
/PHP-7.3/ext/calendar/
H A Deaster.c31 struct tm te; in _cal_easter()
38 struct tm b, *res; in _cal_easter()
H A Dcal_unix.c34 struct tm *ta, tmbuf; in PHP_FUNCTION()
/PHP-7.3/ext/phar/
H A Dzip.c126 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-7.3/ext/ftp/
H A Dftp.c1161 struct tm *gmt, tmbuf; in ftp_mdtm()
1162 struct tm tm; in ftp_mdtm() local
1177 …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()
1181 tm.tm_year -= 1900; in ftp_mdtm()
1182 tm.tm_mon--; in ftp_mdtm()
1183 tm.tm_isdst = -1; in ftp_mdtm()
1194 tm.tm_sec += stamp - mktime(gmt); in ftp_mdtm()
1195 tm.tm_isdst = gmt->tm_isdst; in ftp_mdtm()
1197 stamp = mktime(&tm); in ftp_mdtm()
/PHP-7.3/ext/session/
H A Dsession.c1120 struct tm tm, *res; in strcpy_gmt() local
1123 res = php_gmtime_r(when, &tm); in strcpy_gmt()
1131 week_days[tm.tm_wday], tm.tm_mday, in strcpy_gmt()
1132 month_names[tm.tm_mon], tm.tm_year + 1900, in strcpy_gmt()
1133 tm.tm_hour, tm.tm_min, in strcpy_gmt()
1134 tm.tm_sec); in strcpy_gmt()
/PHP-7.3/sapi/litespeed/
H A Dlsapilib.c249 struct tm tm; in LSAPI_Log() local
251 localtime_r(&tv.tv_sec, &tm); in LSAPI_Log()
255 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, in LSAPI_Log()
256 tm.tm_hour, tm.tm_min, tm.tm_sec, (int)tv.tv_usec); in LSAPI_Log()
261 tm.tm_hour, tm.tm_min, tm.tm_sec); in LSAPI_Log()
/PHP-7.3/ext/interbase/
H A Dphp_ibase_udf.c212 struct tm t; in call_php()
/PHP-7.3/
H A DREADME.MAILINGLIST_RULES12 Collaboration is a Good Thing(tm), and mailinglists lets us do this. Thus,

Completed in 105 milliseconds

12