Lines Matching refs:localtime

658 …ic zend_string *date_format(const char *format, size_t format_len, timelib_time *t, bool localtime)  in date_format()  argument
673 if (localtime) { in date_format()
756 case 'I': length = slprintf(buffer, sizeof(buffer), "%d", localtime ? offset->is_dst : 0); break; in date_format()
758 …if (!localtime || strcmp(offset->abbr, "UTC") == 0 || strcmp(offset->abbr, "Z") == 0 || strcmp(off… in date_format()
765 localtime ? ((offset->offset < 0) ? '-' : '+') : '+', in date_format()
766 localtime ? abs(offset->offset / 3600) : 0, in date_format()
768 localtime ? abs((offset->offset % 3600) / 60) : 0 in date_format()
771 …case 'T': length = slprintf(buffer, sizeof(buffer), "%s", localtime ? offset->abbr : "GMT"); break; in date_format()
772 case 'e': if (!localtime) { in date_format()
792 case 'Z': length = slprintf(buffer, sizeof(buffer), "%d", localtime ? offset->offset : 0); break; in date_format()
798 localtime ? ((offset->offset < 0) ? '-' : '+') : '+', in date_format()
799 localtime ? abs(offset->offset / 3600) : 0, in date_format()
800 localtime ? abs((offset->offset % 3600) / 60) : 0 in date_format()
807 localtime ? ((offset->offset < 0) ? '-' : '+') : '+', in date_format()
808 localtime ? abs(offset->offset / 3600) : 0, in date_format()
809 localtime ? abs((offset->offset % 3600) / 60) : 0 in date_format()
823 if (localtime) { in date_format()
830 static void php_date(INTERNAL_FUNCTION_PARAMETERS, bool localtime) in php_date() argument
846 RETURN_STR(php_format_date(ZSTR_VAL(format), ZSTR_LEN(format), ts, localtime)); in php_date()
850 …string *php_format_date(const char *format, size_t format_len, time_t ts, bool localtime) /* {{{ */ in php_format_date() argument
858 if (localtime) { in php_format_date()
868 string = date_format(format, format_len, t, localtime); in php_format_date()
876 PHPAPI int php_idate(char format, time_t ts, bool localtime) in php_idate() argument
886 if (!localtime) { in php_idate()
896 if (!localtime) { in php_idate()
958 case 'I': retval = (int) (!localtime ? offset->is_dst : 0); break; in php_idate()
959 case 'Z': retval = (int) (!localtime ? offset->offset : 0); break; in php_idate()
964 if (!localtime) { in php_idate()
1357 PHP_FUNCTION(localtime) in PHP_FUNCTION() argument