Lines Matching refs:localtime
624 …tic zend_string *date_format(const char *format, size_t format_len, timelib_time *t, int localtime) in date_format() argument
639 if (localtime) { in date_format()
717 case 'I': length = slprintf(buffer, sizeof(buffer), "%d", localtime ? offset->is_dst : 0); break; in date_format()
719 if (!localtime || strcmp(offset->abbr, "UTC") == 0 || strcmp(offset->abbr, "Z") == 0) { in date_format()
726 localtime ? ((offset->offset < 0) ? '-' : '+') : '+', in date_format()
727 localtime ? abs(offset->offset / 3600) : 0, in date_format()
729 localtime ? abs((offset->offset % 3600) / 60) : 0 in date_format()
732 …case 'T': length = slprintf(buffer, sizeof(buffer), "%s", localtime ? offset->abbr : "GMT"); break; in date_format()
733 case 'e': if (!localtime) { in date_format()
753 case 'Z': length = slprintf(buffer, sizeof(buffer), "%d", localtime ? offset->offset : 0); break; in date_format()
759 localtime ? ((offset->offset < 0) ? '-' : '+') : '+', in date_format()
760 localtime ? abs(offset->offset / 3600) : 0, in date_format()
761 localtime ? abs((offset->offset % 3600) / 60) : 0 in date_format()
768 localtime ? ((offset->offset < 0) ? '-' : '+') : '+', in date_format()
769 localtime ? abs(offset->offset / 3600) : 0, in date_format()
770 localtime ? abs((offset->offset % 3600) / 60) : 0 in date_format()
784 if (localtime) { in date_format()
791 static void php_date(INTERNAL_FUNCTION_PARAMETERS, int localtime) in php_date() argument
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
819 if (localtime) { in php_format_date()
829 string = date_format(format, format_len, t, localtime); in php_format_date()
837 PHPAPI int php_idate(char format, time_t ts, int localtime) in php_idate() argument
847 if (!localtime) { in php_idate()
857 if (!localtime) { in php_idate()
917 case 'I': retval = (int) (!localtime ? offset->is_dst : 0); break; in php_idate()
918 case 'Z': retval = (int) (!localtime ? offset->offset : 0); break; in php_idate()
923 if (!localtime) { in php_idate()
1316 PHP_FUNCTION(localtime) in PHP_FUNCTION() argument