Lines Matching refs:ts

1171 	long    ts;  in php_date()  local
1174 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &format, &format_len, &ts) == FAILURE)… in php_date()
1178 ts = time(NULL); in php_date()
1181 string = php_format_date(format, format_len, ts, localtime TSRMLS_CC); in php_date()
1187 PHPAPI char *php_format_date(char *format, int format_len, time_t ts, int localtime TSRMLS_DC) /* {… in php_format_date() argument
1199 timelib_unixtime2local(t, ts); in php_format_date()
1202 timelib_unixtime2gmt(t, ts); in php_format_date()
1214 PHPAPI int php_idate(char format, time_t ts, int localtime TSRMLS_DC) in php_idate() argument
1228 timelib_unixtime2local(t, ts); in php_idate()
1231 timelib_unixtime2gmt(t, ts); in php_idate()
1330 long ts = 0; in PHP_FUNCTION() local
1333 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &format, &format_len, &ts) == FAILURE)… in PHP_FUNCTION()
1343 ts = time(NULL); in PHP_FUNCTION()
1346 ret = php_idate(format[0], ts, 0 TSRMLS_CC); in PHP_FUNCTION()
1400 long preset_ts = 0, ts; in PHP_FUNCTION() local
1440 ts = timelib_date_to_int(t, &error2); in PHP_FUNCTION()
1448 RETURN_LONG(ts); in PHP_FUNCTION()
1460 long ts, adjust_seconds = 0; in php_mktime() local
1534 ts = timelib_date_to_int(now, &error); in php_mktime()
1535 ts += adjust_seconds; in php_mktime()
1541 RETURN_LONG(ts); in php_mktime()
1590 timelib_time *ts; in php_strftime() local
1604 ts = timelib_time_ctor(); in php_strftime()
1607 timelib_unixtime2gmt(ts, (timelib_sll) timestamp); in php_strftime()
1610 ts->tz_info = tzi; in php_strftime()
1611 ts->zone_type = TIMELIB_ZONETYPE_ID; in php_strftime()
1612 timelib_unixtime2local(ts, (timelib_sll) timestamp); in php_strftime()
1614 ta.tm_sec = ts->s; in php_strftime()
1615 ta.tm_min = ts->i; in php_strftime()
1616 ta.tm_hour = ts->h; in php_strftime()
1617 ta.tm_mday = ts->d; in php_strftime()
1618 ta.tm_mon = ts->m - 1; in php_strftime()
1619 ta.tm_year = ts->y - 1900; in php_strftime()
1620 ta.tm_wday = timelib_day_of_week(ts->y, ts->m, ts->d); in php_strftime()
1621 ta.tm_yday = timelib_day_of_year(ts->y, ts->m, ts->d); in php_strftime()
1651 timelib_time_dtor(ts); in php_strftime()
1697 timelib_time *ts; in PHP_FUNCTION() local
1704 ts = timelib_time_ctor(); in PHP_FUNCTION()
1705 ts->tz_info = tzi; in PHP_FUNCTION()
1706 ts->zone_type = TIMELIB_ZONETYPE_ID; in PHP_FUNCTION()
1707 timelib_unixtime2local(ts, (timelib_sll) timestamp); in PHP_FUNCTION()
1712 add_assoc_long(return_value, "tm_sec", ts->s); in PHP_FUNCTION()
1713 add_assoc_long(return_value, "tm_min", ts->i); in PHP_FUNCTION()
1714 add_assoc_long(return_value, "tm_hour", ts->h); in PHP_FUNCTION()
1715 add_assoc_long(return_value, "tm_mday", ts->d); in PHP_FUNCTION()
1716 add_assoc_long(return_value, "tm_mon", ts->m - 1); in PHP_FUNCTION()
1717 add_assoc_long(return_value, "tm_year", ts->y - 1900); in PHP_FUNCTION()
1718 add_assoc_long(return_value, "tm_wday", timelib_day_of_week(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1719 add_assoc_long(return_value, "tm_yday", timelib_day_of_year(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1720 add_assoc_long(return_value, "tm_isdst", ts->dst); in PHP_FUNCTION()
1722 add_next_index_long(return_value, ts->s); in PHP_FUNCTION()
1723 add_next_index_long(return_value, ts->i); in PHP_FUNCTION()
1724 add_next_index_long(return_value, ts->h); in PHP_FUNCTION()
1725 add_next_index_long(return_value, ts->d); in PHP_FUNCTION()
1726 add_next_index_long(return_value, ts->m - 1); in PHP_FUNCTION()
1727 add_next_index_long(return_value, ts->y- 1900); in PHP_FUNCTION()
1728 add_next_index_long(return_value, timelib_day_of_week(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1729 add_next_index_long(return_value, timelib_day_of_year(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1730 add_next_index_long(return_value, ts->dst); in PHP_FUNCTION()
1733 timelib_time_dtor(ts); in PHP_FUNCTION()
1743 timelib_time *ts; in PHP_FUNCTION() local
1750 ts = timelib_time_ctor(); in PHP_FUNCTION()
1751 ts->tz_info = tzi; in PHP_FUNCTION()
1752 ts->zone_type = TIMELIB_ZONETYPE_ID; in PHP_FUNCTION()
1753 timelib_unixtime2local(ts, (timelib_sll) timestamp); in PHP_FUNCTION()
1757 add_assoc_long(return_value, "seconds", ts->s); in PHP_FUNCTION()
1758 add_assoc_long(return_value, "minutes", ts->i); in PHP_FUNCTION()
1759 add_assoc_long(return_value, "hours", ts->h); in PHP_FUNCTION()
1760 add_assoc_long(return_value, "mday", ts->d); in PHP_FUNCTION()
1761 add_assoc_long(return_value, "wday", timelib_day_of_week(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1762 add_assoc_long(return_value, "mon", ts->m); in PHP_FUNCTION()
1763 add_assoc_long(return_value, "year", ts->y); in PHP_FUNCTION()
1764 add_assoc_long(return_value, "yday", timelib_day_of_year(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1765 add_assoc_string(return_value, "weekday", php_date_full_day_name(ts->y, ts->m, ts->d), 1); in PHP_FUNCTION()
1766 add_assoc_string(return_value, "month", mon_full_names[ts->m - 1], 1); in PHP_FUNCTION()
1769 timelib_time_dtor(ts); in PHP_FUNCTION()
3403 #define add(i,ts) \ in PHP_FUNCTION() argument
3406 add_assoc_long(element, "ts", ts); \ in PHP_FUNCTION()
3407 add_assoc_string(element, "time", php_format_date(DATE_FORMAT_ISO8601, 13, ts, 0 TSRMLS_CC), 0); \ in PHP_FUNCTION()