Lines Matching defs:buf
1451 /* Add formatted UTC offset string to buf. buf has no more than
1454 * *buf, and that's all. Else the returned value is checked for sanity (an
1462 format_utcoffset(char *buf, size_t buflen, const char *sep,
1476 *buf = '\0';
1496 PyOS_snprintf(buf, buflen, "%c%02d%s%02d%s%02d.%06d", sign,
1501 PyOS_snprintf(buf, buflen, "%c%02d%s%02d%s%02d", sign, hours,
1505 PyOS_snprintf(buf, buflen, "%c%02d%s%02d", sign, hours, sep, minutes);
1637 char buf[100];
1643 if (format_utcoffset(buf,
1644 sizeof(buf),
1651 PyBytes_FromStringAndSize(buf,
1652 strlen(buf));
4369 char buf[100];
4422 if (format_utcoffset(buf, sizeof(buf), ":", self->tzinfo,
4427 PyUnicode_AppendAndDel(&result, PyUnicode_FromString(buf));
6102 char buf[100];
6103 strftime(buf, sizeof(buf), "%Z", &local_time_tm);
6104 zone = buf;