aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/timestamp.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2003-12-25 03:36:24 +0000
committerBruce Momjian <bruce@momjian.us>2003-12-25 03:36:24 +0000
commit1c757c49fa95c8db90fae69787ac27d5ebabad4b (patch)
tree5fb7afa9e592e218d33d8f6fe9fb8b90eff79ca3 /src/include/utils/timestamp.h
parent03caf7649b968d63ec598205965fda68f073b47b (diff)
downloadpostgresql-1c757c49fa95c8db90fae69787ac27d5ebabad4b.tar.gz
postgresql-1c757c49fa95c8db90fae69787ac27d5ebabad4b.zip
> > I have no idea if this in Oracle or not. But it's something I
> > needed, and other people in the past asked about it too. > > It is in Oracle, but you aren't exactly on the spot. It should be > > IYYY - 4 digits ('2003') > IYY - 3 digits ('003') > IY - 2 digits ('03') > I - 1 digit ('3') Here is an updated patch that does that. Kurt Roeckx
Diffstat (limited to 'src/include/utils/timestamp.h')
-rw-r--r--src/include/utils/timestamp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/utils/timestamp.h b/src/include/utils/timestamp.h
index 2e20298a77b..d70a6f1833f 100644
--- a/src/include/utils/timestamp.h
+++ b/src/include/utils/timestamp.h
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/utils/timestamp.h,v 1.32 2003/11/29 22:41:16 pgsql Exp $
+ * $PostgreSQL: pgsql/src/include/utils/timestamp.h,v 1.33 2003/12/25 03:36:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -248,5 +248,6 @@ extern void GetEpochTime(struct tm * tm);
extern void isoweek2date(int woy, int *year, int *mon, int *mday);
extern int date2isoweek(int year, int mon, int mday);
+extern int date2isoyear(int year, int mon, int mday);
#endif /* TIMESTAMP_H */