diff options
| author | Bruce Momjian <bruce@momjian.us> | 2007-02-16 03:39:46 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2007-02-16 03:39:46 +0000 |
| commit | 4ebb0cf9c30c1e477d5e2dfcc1f2c016c3f8bbcf (patch) | |
| tree | fd6ce21ac074478e57b9f55ff378a4ae1a04d14f /src/include/utils/datetime.h | |
| parent | c7b08050d9a2b68b27045b36ff4c9a3db85a55e4 (diff) | |
| download | postgresql-4ebb0cf9c30c1e477d5e2dfcc1f2c016c3f8bbcf.tar.gz | |
Add two new format fields for use with to_char(), to_date() and
to_timestamp():
- ID for day-of-week
- IDDD for day-of-year
This makes it possible to convert ISO week dates to and from text
fully represented in either week ('IYYY-IW-ID') or day-of-year
('IYYY-IDDD') format.
I have also added an 'isoyear' field for use with extract / date_part.
Brendan Jurd
Diffstat (limited to 'src/include/utils/datetime.h')
| -rw-r--r-- | src/include/utils/datetime.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/utils/datetime.h b/src/include/utils/datetime.h index 0b19143c28..fc7b16fdb4 100644 --- a/src/include/utils/datetime.h +++ b/src/include/utils/datetime.h @@ -9,7 +9,7 @@ * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/datetime.h,v 1.63 2007/01/05 22:19:59 momjian Exp $ + * $PostgreSQL: pgsql/src/include/utils/datetime.h,v 1.64 2007/02/16 03:39:45 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -165,6 +165,7 @@ #define DTK_DOY 33 #define DTK_TZ_HOUR 34 #define DTK_TZ_MINUTE 35 +#define DTK_ISOYEAR 36 /* |
