Lines Matching refs:slprintf
702 case 'd': length = slprintf(buffer, sizeof(buffer), "%02d", (int) t->d); break; in date_format()
703 …case 'D': length = slprintf(buffer, sizeof(buffer), "%s", php_date_short_day_name(t->y, t->m, t->d… in date_format()
704 case 'j': length = slprintf(buffer, sizeof(buffer), "%d", (int) t->d); break; in date_format()
705 …case 'l': length = slprintf(buffer, sizeof(buffer), "%s", php_date_full_day_name(t->y, t->m, t->d)… in date_format()
706 case 'S': length = slprintf(buffer, sizeof(buffer), "%s", english_suffix(t->d)); break; in date_format()
707 …case 'w': length = slprintf(buffer, sizeof(buffer), "%d", (int) timelib_day_of_week(t->y, t->m, t-… in date_format()
708 …case 'N': length = slprintf(buffer, sizeof(buffer), "%d", (int) timelib_iso_day_of_week(t->y, t->m… in date_format()
709 …case 'z': length = slprintf(buffer, sizeof(buffer), "%d", (int) timelib_day_of_year(t->y, t->m, t-… in date_format()
714 length = slprintf(buffer, sizeof(buffer), "%02d", (int) isoweek); break; /* iso weeknr */ in date_format()
717 …length = slprintf(buffer, sizeof(buffer), ZEND_LONG_FMT, (zend_long) isoyear); break; /* iso year … in date_format()
720 case 'F': length = slprintf(buffer, sizeof(buffer), "%s", mon_full_names[t->m - 1]); break; in date_format()
721 case 'm': length = slprintf(buffer, sizeof(buffer), "%02d", (int) t->m); break; in date_format()
722 case 'M': length = slprintf(buffer, sizeof(buffer), "%s", mon_short_names[t->m - 1]); break; in date_format()
723 case 'n': length = slprintf(buffer, sizeof(buffer), "%d", (int) t->m); break; in date_format()
724 …case 't': length = slprintf(buffer, sizeof(buffer), "%d", (int) timelib_days_in_month(t->y, t->m))… in date_format()
727 case 'L': length = slprintf(buffer, sizeof(buffer), "%d", timelib_is_leap((int) t->y)); break; in date_format()
728 case 'y': length = slprintf(buffer, sizeof(buffer), "%02d", (int) (t->y % 100)); break; in date_format()
729 …case 'Y': length = slprintf(buffer, sizeof(buffer), "%s%04lld", t->y < 0 ? "-" : "", php_date_llab… in date_format()
730 …case 'x': length = slprintf(buffer, sizeof(buffer), "%s%04lld", t->y < 0 ? "-" : (t->y >= 10000 ? … in date_format()
731 …case 'X': length = slprintf(buffer, sizeof(buffer), "%s%04lld", t->y < 0 ? "-" : "+", php_date_lla… in date_format()
734 case 'a': length = slprintf(buffer, sizeof(buffer), "%s", t->h >= 12 ? "pm" : "am"); break; in date_format()
735 case 'A': length = slprintf(buffer, sizeof(buffer), "%s", t->h >= 12 ? "PM" : "AM"); break; in date_format()
743 length = slprintf(buffer, sizeof(buffer), "%03d", retval); in date_format()
746 …case 'g': length = slprintf(buffer, sizeof(buffer), "%d", (t->h % 12) ? (int) t->h % 12 : 12); bre… in date_format()
747 case 'G': length = slprintf(buffer, sizeof(buffer), "%d", (int) t->h); break; in date_format()
748 …case 'h': length = slprintf(buffer, sizeof(buffer), "%02d", (t->h % 12) ? (int) t->h % 12 : 12); b… in date_format()
749 case 'H': length = slprintf(buffer, sizeof(buffer), "%02d", (int) t->h); break; in date_format()
750 case 'i': length = slprintf(buffer, sizeof(buffer), "%02d", (int) t->i); break; in date_format()
751 case 's': length = slprintf(buffer, sizeof(buffer), "%02d", (int) t->s); break; in date_format()
752 case 'u': length = slprintf(buffer, sizeof(buffer), "%06d", (int) floor(t->us)); break; in date_format()
753 case 'v': length = slprintf(buffer, sizeof(buffer), "%03d", (int) floor(t->us / 1000)); break; in date_format()
756 case 'I': length = slprintf(buffer, sizeof(buffer), "%d", localtime ? offset->is_dst : 0); break; in date_format()
759 length = slprintf(buffer, sizeof(buffer), "%s", "Z"); in date_format()
764 case 'O': length = slprintf(buffer, sizeof(buffer), "%c%02d%s%02d", in date_format()
771 …case 'T': length = slprintf(buffer, sizeof(buffer), "%s", localtime ? offset->abbr : "GMT"); break; in date_format()
773 length = slprintf(buffer, sizeof(buffer), "%s", "UTC"); in date_format()
777 length = slprintf(buffer, sizeof(buffer), "%s", t->tz_info->name); in date_format()
780 length = slprintf(buffer, sizeof(buffer), "%s", offset->abbr); in date_format()
783 length = slprintf(buffer, sizeof(buffer), "%c%02d:%02d", in date_format()
792 case 'Z': length = slprintf(buffer, sizeof(buffer), "%d", localtime ? offset->offset : 0); break; in date_format()
795 …case 'c': length = slprintf(buffer, sizeof(buffer), "%04" ZEND_LONG_FMT_SPEC "-%02d-%02dT%02d:%02d… in date_format()
803 …case 'r': length = slprintf(buffer, sizeof(buffer), "%3s, %02d %3s %04" ZEND_LONG_FMT_SPEC " %02d:… in date_format()
812 case 'U': length = slprintf(buffer, sizeof(buffer), "%lld", (timelib_sll) t->sse); break; in date_format()
4617 case 'Y': length = slprintf(buffer, sizeof(buffer), "%02d", (int) t->y); break; in date_interval_format()
4618 case 'y': length = slprintf(buffer, sizeof(buffer), "%d", (int) t->y); break; in date_interval_format()
4620 case 'M': length = slprintf(buffer, sizeof(buffer), "%02d", (int) t->m); break; in date_interval_format()
4621 case 'm': length = slprintf(buffer, sizeof(buffer), "%d", (int) t->m); break; in date_interval_format()
4623 case 'D': length = slprintf(buffer, sizeof(buffer), "%02d", (int) t->d); break; in date_interval_format()
4624 case 'd': length = slprintf(buffer, sizeof(buffer), "%d", (int) t->d); break; in date_interval_format()
4626 case 'H': length = slprintf(buffer, sizeof(buffer), "%02d", (int) t->h); break; in date_interval_format()
4627 case 'h': length = slprintf(buffer, sizeof(buffer), "%d", (int) t->h); break; in date_interval_format()
4629 case 'I': length = slprintf(buffer, sizeof(buffer), "%02d", (int) t->i); break; in date_interval_format()
4630 case 'i': length = slprintf(buffer, sizeof(buffer), "%d", (int) t->i); break; in date_interval_format()
4632 …case 'S': length = slprintf(buffer, sizeof(buffer), "%02" ZEND_LONG_FMT_SPEC, (zend_long) t->s); b… in date_interval_format()
4633 case 's': length = slprintf(buffer, sizeof(buffer), ZEND_LONG_FMT, (zend_long) t->s); break; in date_interval_format()
4635 …case 'F': length = slprintf(buffer, sizeof(buffer), "%06" ZEND_LONG_FMT_SPEC, (zend_long) t->us); … in date_interval_format()
4636 case 'f': length = slprintf(buffer, sizeof(buffer), ZEND_LONG_FMT, (zend_long) t->us); break; in date_interval_format()
4640 length = slprintf(buffer, sizeof(buffer), "%d", (int) t->days); in date_interval_format()
4642 length = slprintf(buffer, sizeof(buffer), "(unknown)"); in date_interval_format()
4645 case 'r': length = slprintf(buffer, sizeof(buffer), "%s", t->invert ? "-" : ""); break; in date_interval_format()
4646 case 'R': length = slprintf(buffer, sizeof(buffer), "%c", t->invert ? '-' : '+'); break; in date_interval_format()
4648 case '%': length = slprintf(buffer, sizeof(buffer), "%%"); break; in date_interval_format()