diff options
| author | Bruce Momjian | 2000-08-29 04:41:48 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2000-08-29 04:41:48 +0000 |
| commit | dffd8cac3dd8fb99ed4299bf2ef7eddba6eeaba2 (patch) | |
| tree | de1078c4af77f5d1f5db078d86874145e2d8cb97 /src/include/utils | |
| parent | d4f626507ca56bf3e1a8adeea7f158535ddb0220 (diff) | |
* to_char:
- full support for IW (ISO week) and vice versa conversion for IW too
(the to_char 'week' support is now complete and I hope correct).
Thomas, I use for IW code from timestamp.c, for this I create separate
function date2isoweek() from original 'case DTK_WEEK:' code in the
timestamp_part(). I mean will better use one code for same feature in
date_part() and in to_char(). The isoweek2date() is added to timestamp.c
too. Right?
IMHO in 7.1 will all to_char's features complete. It is cca 41 templates
for date/time and cca 21 for numbers.
* to_ascii:
- gcc, is it correct now? :-)
In the patch is documentation for to_char's IW and for to_ascii().
Karel
Diffstat (limited to 'src/include/utils')
| -rw-r--r-- | src/include/utils/timestamp.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/utils/timestamp.h b/src/include/utils/timestamp.h index b848c894a04..5ee3575d1fa 100644 --- a/src/include/utils/timestamp.h +++ b/src/include/utils/timestamp.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: timestamp.h,v 1.9 2000/07/17 03:05:32 tgl Exp $ + * $Id: timestamp.h,v 1.10 2000/08/29 04:41:48 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -190,4 +190,7 @@ extern int timestamp2tm(Timestamp dt, int *tzp, struct tm * tm, extern Timestamp SetTimestamp(Timestamp timestamp); +extern void isoweek2date( int woy, int *year, int *mon, int *mday); +extern int date2isoweek(int year, int mon, int mday); + #endif /* TIMESTAMP_H */ |
