* This is mostly for use in emitting messages. The primary difference
* from timestamptz_out is that we force the output format to ISO. Note
* also that the result is in a static buffer, not pstrdup'd.
+ *
+ * See also pg_strftime.
*/
const char *
timestamptz_to_str(TimestampTz t)
static char *_yconv(int, int, bool, bool, char *, char const *);
+/*
+ * Convert timestamp t to string s, a caller-allocated buffer of size maxsize,
+ * using the given format pattern.
+ *
+ * See also timestamptz_to_str.
+ */
size_t
pg_strftime(char *s, size_t maxsize, const char *format, const struct pg_tm *t)
{