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
4828445d
Commit
4828445d
authored
Dec 01, 2004
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify documentation of age() functions.
parent
5374d097
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
doc/src/sgml/func.sgml
doc/src/sgml/func.sgml
+10
-9
No files found.
doc/src/sgml/func.sgml
View file @
4828445d
<!--
<!--
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.22
4 2004/11/27 21:27:06 petere
Exp $
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.22
5 2004/12/01 19:32:12 tgl
Exp $
PostgreSQL documentation
PostgreSQL documentation
-->
-->
...
@@ -4877,19 +4877,20 @@ substring('foobar' from 'o(.)b') <lineannotation>o</lineannotation>
...
@@ -4877,19 +4877,20 @@ substring('foobar' from 'o(.)b') <lineannotation>o</lineannotation>
<tbody>
<tbody>
<row>
<row>
<entry><literal><function>age</function>(<type>timestamp</type>)</literal></entry>
<entry><literal><function>age</function>(<type>timestamp</type>
, <type>timestamp</type>
)</literal></entry>
<entry><type>interval</type></entry>
<entry><type>interval</type></entry>
<entry>Subtract from today</entry>
<entry>Subtract arguments, producing a <quote>symbolic</> result that
<entry><literal>age(timestamp '1957-06-13')</literal></entry>
uses years and months</entry>
<entry><literal>43 years 8 mons 3 days</literal></entry>
<entry><literal>age(timestamp '2001-04-10', timestamp '1957-06-13')</literal></entry>
<entry><literal>43 years 9 mons 27 days</literal></entry>
</row>
</row>
<row>
<row>
<entry><literal><function>age</function>(<type>timestamp</type>
, <type>timestamp</type>
)</literal></entry>
<entry><literal><function>age</function>(<type>timestamp</type>)</literal></entry>
<entry><type>interval</type></entry>
<entry><type>interval</type></entry>
<entry>Subtract
arguments
</entry>
<entry>Subtract
from <function>current_date</function>
</entry>
<entry><literal>age(
'2001-04-10',
timestamp '1957-06-13')</literal></entry>
<entry><literal>age(timestamp '1957-06-13')</literal></entry>
<entry><literal>43 years
9 mons 27
days</literal></entry>
<entry><literal>43 years
8 mons 3
days</literal></entry>
</row>
</row>
<row>
<row>
...
...
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