Lines Matching refs:localtime

676 …ic zend_string *date_format(const char *format, size_t format_len, timelib_time *t, bool localtime)  in date_format()  argument
691 if (localtime) { in date_format()
774 case 'I': length = slprintf(buffer, sizeof(buffer), "%d", localtime ? offset->is_dst : 0); break; in date_format()
776 …if (!localtime || strcmp(offset->abbr, "UTC") == 0 || strcmp(offset->abbr, "Z") == 0 || strcmp(off… in date_format()
783 localtime ? ((offset->offset < 0) ? '-' : '+') : '+', in date_format()
784 localtime ? abs(offset->offset / 3600) : 0, in date_format()
786 localtime ? abs((offset->offset % 3600) / 60) : 0 in date_format()
789 …case 'T': length = slprintf(buffer, sizeof(buffer), "%s", localtime ? offset->abbr : "GMT"); break; in date_format()
790 case 'e': if (!localtime) { in date_format()
810 case 'Z': length = slprintf(buffer, sizeof(buffer), "%d", localtime ? offset->offset : 0); break; in date_format()
816 localtime ? ((offset->offset < 0) ? '-' : '+') : '+', in date_format()
817 localtime ? abs(offset->offset / 3600) : 0, in date_format()
818 localtime ? abs((offset->offset % 3600) / 60) : 0 in date_format()
825 localtime ? ((offset->offset < 0) ? '-' : '+') : '+', in date_format()
826 localtime ? abs(offset->offset / 3600) : 0, in date_format()
827 localtime ? abs((offset->offset % 3600) / 60) : 0 in date_format()
841 if (localtime) { in date_format()
848 static void php_date(INTERNAL_FUNCTION_PARAMETERS, bool localtime) in php_date() argument
864 RETURN_STR(php_format_date(ZSTR_VAL(format), ZSTR_LEN(format), ts, localtime)); in php_date()
868 …string *php_format_date(const char *format, size_t format_len, time_t ts, bool localtime) /* {{{ */ in php_format_date() argument
876 if (localtime) { in php_format_date()
886 string = date_format(format, format_len, t, localtime); in php_format_date()
894 PHPAPI int php_idate(char format, time_t ts, bool localtime) in php_idate() argument
904 if (!localtime) { in php_idate()
914 if (!localtime) { in php_idate()
976 case 'I': retval = (int) (!localtime ? offset->is_dst : 0); break; in php_idate()
977 case 'Z': retval = (int) (!localtime ? offset->offset : 0); break; in php_idate()
982 if (!localtime) { in php_idate()
1375 PHP_FUNCTION(localtime) in PHP_FUNCTION() argument