-
- Downloads
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
Showing
- doc/src/sgml/func.sgml 55 additions, 3 deletionsdoc/src/sgml/func.sgml
- src/backend/utils/adt/date.c 2 additions, 1 deletionsrc/backend/utils/adt/date.c
- src/backend/utils/adt/datetime.c 2 additions, 1 deletionsrc/backend/utils/adt/datetime.c
- src/backend/utils/adt/formatting.c 119 additions, 52 deletionssrc/backend/utils/adt/formatting.c
- src/backend/utils/adt/timestamp.c 57 additions, 13 deletionssrc/backend/utils/adt/timestamp.c
- src/include/utils/datetime.h 2 additions, 1 deletionsrc/include/utils/datetime.h
- src/include/utils/timestamp.h 5 additions, 2 deletionssrc/include/utils/timestamp.h
- src/interfaces/ecpg/pgtypeslib/dt.h 2 additions, 1 deletionsrc/interfaces/ecpg/pgtypeslib/dt.h
- src/test/regress/expected/timestamp.out 247 additions, 0 deletionssrc/test/regress/expected/timestamp.out
- src/test/regress/expected/timestamptz.out 236 additions, 73 deletionssrc/test/regress/expected/timestamptz.out
- src/test/regress/sql/timestamp.sql 25 additions, 0 deletionssrc/test/regress/sql/timestamp.sql
- src/test/regress/sql/timestamptz.sql 21 additions, 4 deletionssrc/test/regress/sql/timestamptz.sql
Loading
Please register or sign in to comment