Lines Matching refs:slprintf
1074 case 'd': length = slprintf(buffer, 32, "%02d", (int) t->d); break; in date_format()
1075 case 'D': length = slprintf(buffer, 32, "%s", php_date_short_day_name(t->y, t->m, t->d)); break; in date_format()
1076 case 'j': length = slprintf(buffer, 32, "%d", (int) t->d); break; in date_format()
1077 case 'l': length = slprintf(buffer, 32, "%s", php_date_full_day_name(t->y, t->m, t->d)); break; in date_format()
1078 case 'S': length = slprintf(buffer, 32, "%s", english_suffix(t->d)); break; in date_format()
1079 … case 'w': length = slprintf(buffer, 32, "%d", (int) timelib_day_of_week(t->y, t->m, t->d)); break; in date_format()
1080 …case 'N': length = slprintf(buffer, 32, "%d", (int) timelib_iso_day_of_week(t->y, t->m, t->d)); br… in date_format()
1081 … case 'z': length = slprintf(buffer, 32, "%d", (int) timelib_day_of_year(t->y, t->m, t->d)); break; in date_format()
1084 case 'W': length = slprintf(buffer, 32, "%02d", (int) isoweek); break; /* iso weeknr */ in date_format()
1085 case 'o': length = slprintf(buffer, 32, "%d", (int) isoyear); break; /* iso year */ in date_format()
1088 case 'F': length = slprintf(buffer, 32, "%s", mon_full_names[t->m - 1]); break; in date_format()
1089 case 'm': length = slprintf(buffer, 32, "%02d", (int) t->m); break; in date_format()
1090 case 'M': length = slprintf(buffer, 32, "%s", mon_short_names[t->m - 1]); break; in date_format()
1091 case 'n': length = slprintf(buffer, 32, "%d", (int) t->m); break; in date_format()
1092 case 't': length = slprintf(buffer, 32, "%d", (int) timelib_days_in_month(t->y, t->m)); break; in date_format()
1095 case 'L': length = slprintf(buffer, 32, "%d", timelib_is_leap((int) t->y)); break; in date_format()
1096 case 'y': length = slprintf(buffer, 32, "%02d", (int) t->y % 100); break; in date_format()
1097 …case 'Y': length = slprintf(buffer, 32, "%s%04lld", t->y < 0 ? "-" : "", php_date_llabs((timelib_s… in date_format()
1100 case 'a': length = slprintf(buffer, 32, "%s", t->h >= 12 ? "pm" : "am"); break; in date_format()
1101 case 'A': length = slprintf(buffer, 32, "%s", t->h >= 12 ? "PM" : "AM"); break; in date_format()
1108 length = slprintf(buffer, 32, "%03d", retval); in date_format()
1111 case 'g': length = slprintf(buffer, 32, "%d", (t->h % 12) ? (int) t->h % 12 : 12); break; in date_format()
1112 case 'G': length = slprintf(buffer, 32, "%d", (int) t->h); break; in date_format()
1113 case 'h': length = slprintf(buffer, 32, "%02d", (t->h % 12) ? (int) t->h % 12 : 12); break; in date_format()
1114 case 'H': length = slprintf(buffer, 32, "%02d", (int) t->h); break; in date_format()
1115 case 'i': length = slprintf(buffer, 32, "%02d", (int) t->i); break; in date_format()
1116 case 's': length = slprintf(buffer, 32, "%02d", (int) t->s); break; in date_format()
1117 case 'u': length = slprintf(buffer, 32, "%06d", (int) floor(t->f * 1000000 + 0.5)); break; in date_format()
1120 case 'I': length = slprintf(buffer, 32, "%d", localtime ? offset->is_dst : 0); break; in date_format()
1122 case 'O': length = slprintf(buffer, 32, "%c%02d%s%02d", in date_format()
1129 case 'T': length = slprintf(buffer, 32, "%s", localtime ? offset->abbr : "GMT"); break; in date_format()
1131 length = slprintf(buffer, 32, "%s", "UTC"); in date_format()
1135 length = slprintf(buffer, 32, "%s", t->tz_info->name); in date_format()
1138 length = slprintf(buffer, 32, "%s", offset->abbr); in date_format()
1141 length = slprintf(buffer, 32, "%c%02d:%02d", in date_format()
1150 case 'Z': length = slprintf(buffer, 32, "%d", localtime ? offset->offset : 0); break; in date_format()
1153 case 'c': length = slprintf(buffer, 96, "%04d-%02d-%02dT%02d:%02d:%02d%c%02d:%02d", in date_format()
1161 case 'r': length = slprintf(buffer, 96, "%3s, %02d %3s %04d %02d:%02d:%02d %c%02d%02d", in date_format()
1170 case 'U': length = slprintf(buffer, 32, "%lld", (timelib_sll) t->sse); break; in date_format()
3804 case 'Y': length = slprintf(buffer, 32, "%02d", (int) t->y); break; in date_interval_format()
3805 case 'y': length = slprintf(buffer, 32, "%d", (int) t->y); break; in date_interval_format()
3807 case 'M': length = slprintf(buffer, 32, "%02d", (int) t->m); break; in date_interval_format()
3808 case 'm': length = slprintf(buffer, 32, "%d", (int) t->m); break; in date_interval_format()
3810 case 'D': length = slprintf(buffer, 32, "%02d", (int) t->d); break; in date_interval_format()
3811 case 'd': length = slprintf(buffer, 32, "%d", (int) t->d); break; in date_interval_format()
3813 case 'H': length = slprintf(buffer, 32, "%02d", (int) t->h); break; in date_interval_format()
3814 case 'h': length = slprintf(buffer, 32, "%d", (int) t->h); break; in date_interval_format()
3816 case 'I': length = slprintf(buffer, 32, "%02d", (int) t->i); break; in date_interval_format()
3817 case 'i': length = slprintf(buffer, 32, "%d", (int) t->i); break; in date_interval_format()
3819 case 'S': length = slprintf(buffer, 32, "%02ld", (long) t->s); break; in date_interval_format()
3820 case 's': length = slprintf(buffer, 32, "%ld", (long) t->s); break; in date_interval_format()
3824 length = slprintf(buffer, 32, "%d", (int) t->days); in date_interval_format()
3826 length = slprintf(buffer, 32, "(unknown)"); in date_interval_format()
3829 case 'r': length = slprintf(buffer, 32, "%s", t->invert ? "-" : ""); break; in date_interval_format()
3830 case 'R': length = slprintf(buffer, 32, "%c", t->invert ? '-' : '+'); break; in date_interval_format()
3832 case '%': length = slprintf(buffer, 32, "%%"); break; in date_interval_format()