Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
70007b4d
Commit
70007b4d
authored
Feb 19, 2007
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify documentation for "day of the week" handling for to_char() and
EXTRACT().
parent
107062e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
doc/src/sgml/func.sgml
doc/src/sgml/func.sgml
+11
-8
No files found.
doc/src/sgml/func.sgml
View file @
70007b4d
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.36
2 2007/02/19 17:41:38
momjian Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.36
3 2007/02/19 18:20:06
momjian Exp $ -->
<chapter
id=
"functions"
>
<title>
Functions and Operators
</title>
...
...
@@ -4617,11 +4617,11 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
</row>
<row>
<entry><literal>
D
</literal></entry>
<entry>
day of
week (1-7; Sunday is 1
)
</entry>
<entry>
day of
the week, Sunday(
<literal>
1
</>
) to Saturday(
<literal>
7
</>
)
</entry>
</row>
<row>
<entry><literal>
ID
</literal></entry>
<entry>
ISO day of
week (1-7; Monday is 1
)
</entry>
<entry>
ISO day of
the week, Monday(
<literal>
1
</>
) to Sunday(
<literal>
7
</>
)
</entry>
</row>
<row>
<entry><literal>
W
</literal></entry>
...
...
@@ -4844,9 +4844,11 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
</listitem>
<listitem>
<para><function>
to_char
</function>
's day of the week numbering
(see the 'D' formatting pattern) is different from that of the
<function>
extract
</function>
function.
<para>
<function>
to_char(..., 'ID')
</function>
's day of the week numbering
matches the
<function>
extract('isodow', ...)
</function>
function.
<function>
to_char(..., 'D')
</function>
's does not match
<function>
extract('dow', ...)
</function>
's day numbering.
</para>
</listitem>
...
...
@@ -5741,8 +5743,9 @@ SELECT EXTRACT(DOW FROM TIMESTAMP '2001-02-16 20:38:40');
<lineannotation>
Result:
</lineannotation><computeroutput>
5
</computeroutput>
</screen>
<para>
Note that
<function>
extract
</function>
's day of the week numbering is
different from that of the
<function>
to_char
</function>
function.
Note that
<function>
extract
</function>
's day of the week numbering
is different from that of the
<function>
to_char(...,
'D')
</function>
function.
</para>
</listitem>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment