diff options
| author | Peter Eisentraut | 2012-03-14 21:03:34 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2012-03-14 21:03:34 +0000 |
| commit | ad4fb0d0d2f33ec0165f2a9a50a6d8cbcef4ab82 (patch) | |
| tree | 46e07054f4e064ef6f496ad5565c9d6502205de7 /src/include/utils | |
| parent | 942b63193c722a58ed24b3305308836b47b3f028 (diff) | |
Improve EncodeDateTime and EncodeTimeOnly APIs
Use an explicit argument to tell whether to include the time zone in
the output, rather than using some undocumented pointer magic.
Diffstat (limited to 'src/include/utils')
| -rw-r--r-- | src/include/utils/datetime.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/utils/datetime.h b/src/include/utils/datetime.h index 358e2a67b02..d73cc8dcfe8 100644 --- a/src/include/utils/datetime.h +++ b/src/include/utils/datetime.h @@ -290,8 +290,8 @@ extern void DateTimeParseError(int dterr, const char *str, extern int DetermineTimeZoneOffset(struct pg_tm * tm, pg_tz *tzp); extern void EncodeDateOnly(struct pg_tm * tm, int style, char *str); -extern void EncodeTimeOnly(struct pg_tm * tm, fsec_t fsec, int *tzp, int style, char *str); -extern void EncodeDateTime(struct pg_tm * tm, fsec_t fsec, int *tzp, char **tzn, int style, char *str); +extern void EncodeTimeOnly(struct pg_tm * tm, fsec_t fsec, bool print_tz, int tz, int style, char *str); +extern void EncodeDateTime(struct pg_tm * tm, fsec_t fsec, bool print_tz, int tz, const char *tzn, int style, char *str); extern void EncodeInterval(struct pg_tm * tm, fsec_t fsec, int style, char *str); extern int DecodeSpecial(int field, char *lowtoken, int *val); |
