Lines Matching refs:ts

1282 	zend_long    ts;  in php_date()  local
1287 Z_PARAM_LONG(ts) in php_date()
1291 ts = php_time(); in php_date()
1294 RETURN_STR(php_format_date(ZSTR_VAL(format), ZSTR_LEN(format), ts, localtime)); in php_date()
1298 PHPAPI zend_string *php_format_date(char *format, size_t format_len, time_t ts, int localtime) /* {… in php_format_date() argument
1310 timelib_unixtime2local(t, ts); in php_format_date()
1313 timelib_unixtime2gmt(t, ts); in php_format_date()
1325 PHPAPI int php_idate(char format, time_t ts, int localtime) in php_idate() argument
1339 timelib_unixtime2local(t, ts); in php_idate()
1342 timelib_unixtime2gmt(t, ts); in php_idate()
1441 zend_long ts = 0; in PHP_FUNCTION() local
1447 Z_PARAM_LONG(ts) in PHP_FUNCTION()
1456 ts = php_time(); in PHP_FUNCTION()
1459 ret = php_idate(ZSTR_VAL(format)[0], ts, 0); in PHP_FUNCTION()
1512 zend_long preset_ts = 0, ts; in PHP_FUNCTION() local
1536 ts = timelib_date_to_int(t, &error2); in PHP_FUNCTION()
1544 RETURN_LONG(ts); in PHP_FUNCTION()
1555 zend_long ts, adjust_seconds = 0; in php_mktime() local
1616 ts = timelib_date_to_int(now, &error); in php_mktime()
1617 ts += adjust_seconds; in php_mktime()
1623 RETURN_LONG(ts); in php_mktime()
1671 timelib_time *ts; in php_strftime() local
1688 ts = timelib_time_ctor(); in php_strftime()
1691 timelib_unixtime2gmt(ts, (timelib_sll) timestamp); in php_strftime()
1694 ts->tz_info = tzi; in php_strftime()
1695 ts->zone_type = TIMELIB_ZONETYPE_ID; in php_strftime()
1696 timelib_unixtime2local(ts, (timelib_sll) timestamp); in php_strftime()
1698 ta.tm_sec = ts->s; in php_strftime()
1699 ta.tm_min = ts->i; in php_strftime()
1700 ta.tm_hour = ts->h; in php_strftime()
1701 ta.tm_mday = ts->d; in php_strftime()
1702 ta.tm_mon = ts->m - 1; in php_strftime()
1703 ta.tm_year = ts->y - 1900; in php_strftime()
1704 ta.tm_wday = timelib_day_of_week(ts->y, ts->m, ts->d); in php_strftime()
1705 ta.tm_yday = timelib_day_of_year(ts->y, ts->m, ts->d); in php_strftime()
1745 timelib_time_dtor(ts); in php_strftime()
1794 timelib_time *ts; in PHP_FUNCTION() local
1807 ts = timelib_time_ctor(); in PHP_FUNCTION()
1808 ts->tz_info = tzi; in PHP_FUNCTION()
1809 ts->zone_type = TIMELIB_ZONETYPE_ID; in PHP_FUNCTION()
1810 timelib_unixtime2local(ts, (timelib_sll) timestamp); in PHP_FUNCTION()
1815 add_assoc_long(return_value, "tm_sec", ts->s); in PHP_FUNCTION()
1816 add_assoc_long(return_value, "tm_min", ts->i); in PHP_FUNCTION()
1817 add_assoc_long(return_value, "tm_hour", ts->h); in PHP_FUNCTION()
1818 add_assoc_long(return_value, "tm_mday", ts->d); in PHP_FUNCTION()
1819 add_assoc_long(return_value, "tm_mon", ts->m - 1); in PHP_FUNCTION()
1820 add_assoc_long(return_value, "tm_year", ts->y - 1900); in PHP_FUNCTION()
1821 add_assoc_long(return_value, "tm_wday", timelib_day_of_week(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1822 add_assoc_long(return_value, "tm_yday", timelib_day_of_year(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1823 add_assoc_long(return_value, "tm_isdst", ts->dst); in PHP_FUNCTION()
1825 add_next_index_long(return_value, ts->s); in PHP_FUNCTION()
1826 add_next_index_long(return_value, ts->i); in PHP_FUNCTION()
1827 add_next_index_long(return_value, ts->h); in PHP_FUNCTION()
1828 add_next_index_long(return_value, ts->d); in PHP_FUNCTION()
1829 add_next_index_long(return_value, ts->m - 1); in PHP_FUNCTION()
1830 add_next_index_long(return_value, ts->y- 1900); in PHP_FUNCTION()
1831 add_next_index_long(return_value, timelib_day_of_week(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1832 add_next_index_long(return_value, timelib_day_of_year(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1833 add_next_index_long(return_value, ts->dst); in PHP_FUNCTION()
1836 timelib_time_dtor(ts); in PHP_FUNCTION()
1846 timelib_time *ts; in PHP_FUNCTION() local
1858 ts = timelib_time_ctor(); in PHP_FUNCTION()
1859 ts->tz_info = tzi; in PHP_FUNCTION()
1860 ts->zone_type = TIMELIB_ZONETYPE_ID; in PHP_FUNCTION()
1861 timelib_unixtime2local(ts, (timelib_sll) timestamp); in PHP_FUNCTION()
1865 add_assoc_long(return_value, "seconds", ts->s); in PHP_FUNCTION()
1866 add_assoc_long(return_value, "minutes", ts->i); in PHP_FUNCTION()
1867 add_assoc_long(return_value, "hours", ts->h); in PHP_FUNCTION()
1868 add_assoc_long(return_value, "mday", ts->d); in PHP_FUNCTION()
1869 add_assoc_long(return_value, "wday", timelib_day_of_week(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1870 add_assoc_long(return_value, "mon", ts->m); in PHP_FUNCTION()
1871 add_assoc_long(return_value, "year", ts->y); in PHP_FUNCTION()
1872 add_assoc_long(return_value, "yday", timelib_day_of_year(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1873 add_assoc_string(return_value, "weekday", php_date_full_day_name(ts->y, ts->m, ts->d)); in PHP_FUNCTION()
1874 add_assoc_string(return_value, "month", mon_full_names[ts->m - 1]); in PHP_FUNCTION()
1877 timelib_time_dtor(ts); in PHP_FUNCTION()
4098 #define add(i,ts) \ in PHP_FUNCTION() argument
4100 add_assoc_long(&element, "ts", ts); \ in PHP_FUNCTION()
4101 add_assoc_str(&element, "time", php_format_date(DATE_FORMAT_ISO8601, 13, ts, 0)); \ in PHP_FUNCTION()