Lines Matching refs:slprintf
1107 case 'd': length = slprintf(buffer, 32, "%02d", (int) t->d); break; in date_format()
1108 case 'D': length = slprintf(buffer, 32, "%s", php_date_short_day_name(t->y, t->m, t->d)); break; in date_format()
1109 case 'j': length = slprintf(buffer, 32, "%d", (int) t->d); break; in date_format()
1110 case 'l': length = slprintf(buffer, 32, "%s", php_date_full_day_name(t->y, t->m, t->d)); break; in date_format()
1111 case 'S': length = slprintf(buffer, 32, "%s", english_suffix(t->d)); break; in date_format()
1112 … case 'w': length = slprintf(buffer, 32, "%d", (int) timelib_day_of_week(t->y, t->m, t->d)); break; in date_format()
1113 …case 'N': length = slprintf(buffer, 32, "%d", (int) timelib_iso_day_of_week(t->y, t->m, t->d)); br… in date_format()
1114 … case 'z': length = slprintf(buffer, 32, "%d", (int) timelib_day_of_year(t->y, t->m, t->d)); break; in date_format()
1119 length = slprintf(buffer, 32, "%02d", (int) isoweek); break; /* iso weeknr */ in date_format()
1122 length = slprintf(buffer, 32, "%d", (int) isoyear); break; /* iso year */ in date_format()
1125 case 'F': length = slprintf(buffer, 32, "%s", mon_full_names[t->m - 1]); break; in date_format()
1126 case 'm': length = slprintf(buffer, 32, "%02d", (int) t->m); break; in date_format()
1127 case 'M': length = slprintf(buffer, 32, "%s", mon_short_names[t->m - 1]); break; in date_format()
1128 case 'n': length = slprintf(buffer, 32, "%d", (int) t->m); break; in date_format()
1129 case 't': length = slprintf(buffer, 32, "%d", (int) timelib_days_in_month(t->y, t->m)); break; in date_format()
1132 case 'L': length = slprintf(buffer, 32, "%d", timelib_is_leap((int) t->y)); break; in date_format()
1133 case 'y': length = slprintf(buffer, 32, "%02d", (int) t->y % 100); break; in date_format()
1134 …case 'Y': length = slprintf(buffer, 32, "%s%04lld", t->y < 0 ? "-" : "", php_date_llabs((timelib_s… in date_format()
1137 case 'a': length = slprintf(buffer, 32, "%s", t->h >= 12 ? "pm" : "am"); break; in date_format()
1138 case 'A': length = slprintf(buffer, 32, "%s", t->h >= 12 ? "PM" : "AM"); break; in date_format()
1145 length = slprintf(buffer, 32, "%03d", retval); in date_format()
1148 case 'g': length = slprintf(buffer, 32, "%d", (t->h % 12) ? (int) t->h % 12 : 12); break; in date_format()
1149 case 'G': length = slprintf(buffer, 32, "%d", (int) t->h); break; in date_format()
1150 case 'h': length = slprintf(buffer, 32, "%02d", (t->h % 12) ? (int) t->h % 12 : 12); break; in date_format()
1151 case 'H': length = slprintf(buffer, 32, "%02d", (int) t->h); break; in date_format()
1152 case 'i': length = slprintf(buffer, 32, "%02d", (int) t->i); break; in date_format()
1153 case 's': length = slprintf(buffer, 32, "%02d", (int) t->s); break; in date_format()
1154 case 'u': length = slprintf(buffer, 32, "%06d", (int) floor(t->f * 1000000 + 0.5)); break; in date_format()
1157 case 'I': length = slprintf(buffer, 32, "%d", localtime ? offset->is_dst : 0); break; in date_format()
1159 case 'O': length = slprintf(buffer, 32, "%c%02d%s%02d", in date_format()
1166 case 'T': length = slprintf(buffer, 32, "%s", localtime ? offset->abbr : "GMT"); break; in date_format()
1168 length = slprintf(buffer, 32, "%s", "UTC"); in date_format()
1172 length = slprintf(buffer, 32, "%s", t->tz_info->name); in date_format()
1175 length = slprintf(buffer, 32, "%s", offset->abbr); in date_format()
1178 length = slprintf(buffer, 32, "%c%02d:%02d", in date_format()
1187 case 'Z': length = slprintf(buffer, 32, "%d", localtime ? offset->offset : 0); break; in date_format()
1190 case 'c': length = slprintf(buffer, 96, "%04d-%02d-%02dT%02d:%02d:%02d%c%02d:%02d", in date_format()
1198 case 'r': length = slprintf(buffer, 96, "%3s, %02d %3s %04d %02d:%02d:%02d %c%02d%02d", in date_format()
1207 case 'U': length = slprintf(buffer, 32, "%lld", (timelib_sll) t->sse); break; in date_format()
4319 case 'Y': length = slprintf(buffer, 32, "%02d", (int) t->y); break; in date_interval_format()
4320 case 'y': length = slprintf(buffer, 32, "%d", (int) t->y); break; in date_interval_format()
4322 case 'M': length = slprintf(buffer, 32, "%02d", (int) t->m); break; in date_interval_format()
4323 case 'm': length = slprintf(buffer, 32, "%d", (int) t->m); break; in date_interval_format()
4325 case 'D': length = slprintf(buffer, 32, "%02d", (int) t->d); break; in date_interval_format()
4326 case 'd': length = slprintf(buffer, 32, "%d", (int) t->d); break; in date_interval_format()
4328 case 'H': length = slprintf(buffer, 32, "%02d", (int) t->h); break; in date_interval_format()
4329 case 'h': length = slprintf(buffer, 32, "%d", (int) t->h); break; in date_interval_format()
4331 case 'I': length = slprintf(buffer, 32, "%02d", (int) t->i); break; in date_interval_format()
4332 case 'i': length = slprintf(buffer, 32, "%d", (int) t->i); break; in date_interval_format()
4334 case 'S': length = slprintf(buffer, 32, "%02ld", (long) t->s); break; in date_interval_format()
4335 case 's': length = slprintf(buffer, 32, "%ld", (long) t->s); break; in date_interval_format()
4339 length = slprintf(buffer, 32, "%d", (int) t->days); in date_interval_format()
4341 length = slprintf(buffer, 32, "(unknown)"); in date_interval_format()
4344 case 'r': length = slprintf(buffer, 32, "%s", t->invert ? "-" : ""); break; in date_interval_format()
4345 case 'R': length = slprintf(buffer, 32, "%c", t->invert ? '-' : '+'); break; in date_interval_format()
4347 case '%': length = slprintf(buffer, 32, "%%"); break; in date_interval_format()