Lines Matching refs:ts

794 	zend_long    ts;  in php_date()  local
800 Z_PARAM_LONG_OR_NULL(ts, ts_is_null) in php_date()
804 ts = php_time(); in php_date()
807 RETURN_STR(php_format_date(ZSTR_VAL(format), ZSTR_LEN(format), ts, localtime)); in php_date()
811 PHPAPI zend_string *php_format_date(const char *format, size_t format_len, time_t ts, int localtime… in php_format_date() argument
823 timelib_unixtime2local(t, ts); in php_format_date()
826 timelib_unixtime2gmt(t, ts); in php_format_date()
837 PHPAPI int php_idate(char format, time_t ts, int localtime) in php_idate() argument
851 timelib_unixtime2local(t, ts); in php_idate()
854 timelib_unixtime2gmt(t, ts); in php_idate()
950 zend_long ts; in PHP_FUNCTION() local
957 Z_PARAM_LONG_OR_NULL(ts, ts_is_null) in PHP_FUNCTION()
966 ts = php_time(); in PHP_FUNCTION()
969 ret = php_idate(ZSTR_VAL(format)[0], ts, 0); in PHP_FUNCTION()
1021 zend_long preset_ts, ts; in PHP_FUNCTION() local
1060 ts = timelib_date_to_int(t, &epoch_does_not_fit_in_zend_long); in PHP_FUNCTION()
1070 RETURN_LONG(ts); in PHP_FUNCTION()
1081 zend_long ts, adjust_seconds = 0; in php_mktime() local
1143 ts = timelib_date_to_int(now, &epoch_does_not_fit_in_zend_long); in php_mktime()
1151 ts += adjust_seconds; in php_mktime()
1154 RETURN_LONG(ts); in php_mktime()
1199 timelib_time *ts; in php_strftime() local
1218 ts = timelib_time_ctor(); in php_strftime()
1221 timelib_unixtime2gmt(ts, (timelib_sll) timestamp); in php_strftime()
1227 ts->tz_info = tzi; in php_strftime()
1228 ts->zone_type = TIMELIB_ZONETYPE_ID; in php_strftime()
1229 timelib_unixtime2local(ts, (timelib_sll) timestamp); in php_strftime()
1231 ta.tm_sec = ts->s; in php_strftime()
1232 ta.tm_min = ts->i; in php_strftime()
1233 ta.tm_hour = ts->h; in php_strftime()
1234 ta.tm_mday = ts->d; in php_strftime()
1235 ta.tm_mon = ts->m - 1; in php_strftime()
1236 ta.tm_year = ts->y - 1900; in php_strftime()
1237 ta.tm_wday = timelib_day_of_week(ts->y, ts->m, ts->d); in php_strftime()
1238 ta.tm_yday = timelib_day_of_year(ts->y, ts->m, ts->d); in php_strftime()
1278 timelib_time_dtor(ts); in php_strftime()
1322 timelib_time *ts; in PHP_FUNCTION() local
1338 ts = timelib_time_ctor(); in PHP_FUNCTION()
1339 ts->tz_info = tzi; in PHP_FUNCTION()
1340 ts->zone_type = TIMELIB_ZONETYPE_ID; in PHP_FUNCTION()
1341 timelib_unixtime2local(ts, (timelib_sll) timestamp); in PHP_FUNCTION()
1346 add_assoc_long(return_value, "tm_sec", ts->s); in PHP_FUNCTION()
1347 add_assoc_long(return_value, "tm_min", ts->i); in PHP_FUNCTION()
1348 add_assoc_long(return_value, "tm_hour", ts->h); in PHP_FUNCTION()
1349 add_assoc_long(return_value, "tm_mday", ts->d); in PHP_FUNCTION()
1350 add_assoc_long(return_value, "tm_mon", ts->m - 1); in PHP_FUNCTION()
1351 add_assoc_long(return_value, "tm_year", ts->y - 1900); in PHP_FUNCTION()
1352 add_assoc_long(return_value, "tm_wday", timelib_day_of_week(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1353 add_assoc_long(return_value, "tm_yday", timelib_day_of_year(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1354 add_assoc_long(return_value, "tm_isdst", ts->dst); in PHP_FUNCTION()
1356 add_next_index_long(return_value, ts->s); in PHP_FUNCTION()
1357 add_next_index_long(return_value, ts->i); in PHP_FUNCTION()
1358 add_next_index_long(return_value, ts->h); in PHP_FUNCTION()
1359 add_next_index_long(return_value, ts->d); in PHP_FUNCTION()
1360 add_next_index_long(return_value, ts->m - 1); in PHP_FUNCTION()
1361 add_next_index_long(return_value, ts->y- 1900); in PHP_FUNCTION()
1362 add_next_index_long(return_value, timelib_day_of_week(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1363 add_next_index_long(return_value, timelib_day_of_year(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1364 add_next_index_long(return_value, ts->dst); in PHP_FUNCTION()
1367 timelib_time_dtor(ts); in PHP_FUNCTION()
1377 timelib_time *ts; in PHP_FUNCTION() local
1392 ts = timelib_time_ctor(); in PHP_FUNCTION()
1393 ts->tz_info = tzi; in PHP_FUNCTION()
1394 ts->zone_type = TIMELIB_ZONETYPE_ID; in PHP_FUNCTION()
1395 timelib_unixtime2local(ts, (timelib_sll) timestamp); in PHP_FUNCTION()
1399 add_assoc_long(return_value, "seconds", ts->s); in PHP_FUNCTION()
1400 add_assoc_long(return_value, "minutes", ts->i); in PHP_FUNCTION()
1401 add_assoc_long(return_value, "hours", ts->h); in PHP_FUNCTION()
1402 add_assoc_long(return_value, "mday", ts->d); in PHP_FUNCTION()
1403 add_assoc_long(return_value, "wday", timelib_day_of_week(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1404 add_assoc_long(return_value, "mon", ts->m); in PHP_FUNCTION()
1405 add_assoc_long(return_value, "year", ts->y); in PHP_FUNCTION()
1406 add_assoc_long(return_value, "yday", timelib_day_of_year(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1407 add_assoc_string(return_value, "weekday", php_date_full_day_name(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1408 add_assoc_string(return_value, "month", mon_full_names[ts->m - 1]); in PHP_FUNCTION()
1411 timelib_time_dtor(ts); in PHP_FUNCTION()
3663 #define add(i,ts) \ in PHP_FUNCTION() argument
3665 add_assoc_long(&element, "ts", ts); \ in PHP_FUNCTION()
3666 add_assoc_str(&element, "time", php_format_date(DATE_FORMAT_ISO8601, 13, ts, 0)); \ in PHP_FUNCTION()