summaryrefslogtreecommitdiff
path: root/src/timezone
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2020-05-15 18:05:34 -0400
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2020-05-15 18:05:34 -0400
commita0ab4f4909a3f52e8b8243d2ae2dbb6f5027136c (patch)
treebfa82c2e300271e85746e45b6ceb96689e27ee79 /src/timezone
parent242dfcbafac592a3f097ec2e4e36fe1b739f7f29 (diff)
downloadpostgresql-a0ab4f4909a3f52e8b8243d2ae2dbb6f5027136c.tar.gz
Add comments linking pg_strftime to timestamptz_to_str
Diffstat (limited to 'src/timezone')
-rw-r--r--src/timezone/strftime.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/timezone/strftime.c b/src/timezone/strftime.c
index 55c617f8c2..380b4888a5 100644
--- a/src/timezone/strftime.c
+++ b/src/timezone/strftime.c
@@ -118,6 +118,12 @@ static char *_fmt(const char *, const struct pg_tm *, char *, const char *,
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)
{