Lines Matching defs:string
761 // This is an isocalendar-style date string
870 // Return 1 if it's not the end of the string
879 // Parse the time portion of a datetime.isoformat() string
886 // -5: Malformed timezone string
906 // end of the string it's an error.
1318 * tzname() doesn't return None or a string, TypeError is raised and this
1319 * returns NULL. If the result is a string, we ensure it is a Unicode
1320 * string.
1342 "return None or a string, not '%s'",
1451 /* Add formatted UTC offset string to buf. buf has no more than
1456 * string of the form
1543 "tzname.replace() did not return a string");
1570 * preprocessing step on the format string.
1580 PyObject *zreplacement = NULL; /* py string, replacement for %z */
1581 PyObject *Zreplacement = NULL; /* py string, replacement for %Z */
1582 PyObject *freplacement = NULL; /* py string, replacement for %f */
1588 PyObject *newfmt = NULL; /* py string, the output format */
1594 const char *ptoappend; /* ptr to string to append to output buffer */
1599 /* Convert the input format to a C string and size */
2929 "Failed to encode latin1 string when unpickling "
3056 /* Return the new date from a string as generated by date.isoformat() */
3092 PyErr_Format(PyExc_ValueError, "Invalid isoformat string: %R", dtstr);
3219 /* Various ways to turn a date into a string. */
3568 PyDoc_STR("str -> Construct a date from a string in ISO 8601 format.")},
3583 PyDoc_STR("Return ctime() style string.")},
3586 PyDoc_STR("format -> strftime() style string.")},
3599 PyDoc_STR("Return string in ISO 8601 format, YYYY-MM-DD.")},
3844 PyDoc_STR("datetime -> string name of time zone.")},
4274 "Failed to encode latin1 string when unpickling "
4331 * Various ways to turn a time into a string.
4680 PyErr_Format(PyExc_ValueError, "Invalid isoformat string: %R", tstr);
4687 /* Let basestate be the non-tzinfo data string.
4732 PyDoc_STR("Return string in ISO 8601 format, [HH[:MM[:SS[.mmm[uuu]]]]]"
4740 PyDoc_STR("format -> strftime() style string.")},
4758 PyDoc_STR("string -> time from a string in ISO 8601 format")},
4954 "Failed to encode latin1 string when unpickling "
5224 PyObject *string, *format;
5227 if (!PyArg_ParseTuple(args, "UU:strptime", &string, &format))
5236 cls, string, format, NULL);
5289 // Depending on the format of the string, the separator can only ever be
5293 // fail when we try to encode the string as ASCII.
5353 // to either the end of the string or the first non-numeric character —
5439 // We only need to sanitize this string if the separator is a surrogate
5454 // Encoding errors are invalid string errors at this point
5516 PyErr_Format(PyExc_ValueError, "Invalid isoformat string: %R", dtstr);
5700 /* Various ways to turn a datetime into a string. */
6480 /* Let basestate be the non-tzinfo data string.
6542 PyDoc_STR("string, format -> new datetime parsed from a string "
6551 PyDoc_STR("string -> datetime from a string in most ISO 8601 formats")},
6565 PyDoc_STR("Return ctime() style string.")},
6577 PyDoc_STR("[sep] -> string in ISO 8601 format, "