mirror of
https://github.com/postgres/postgres.git
synced 2025-06-23 14:01:44 +03:00
> > I have no idea if this in Oracle or not. But it's something I
> > needed, and other people in the past asked about it too. > > It is in Oracle, but you aren't exactly on the spot. It should be > > IYYY - 4 digits ('2003') > IYY - 3 digits ('003') > IY - 2 digits ('03') > I - 1 digit ('3') Here is an updated patch that does that. Kurt Roeckx
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.183 2003/12/18 03:59:07 momjian Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.184 2003/12/25 03:36:23 momjian Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
@ -3983,6 +3983,22 @@ substring('foobar' from 'o(.)b') <lineannotation>o</lineannotation>
|
||||
<entry><literal>Y</literal></entry>
|
||||
<entry>last digit of year</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal>IYYY</literal></entry>
|
||||
<entry>ISO year (4 and more digits)</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal>IYY</literal></entry>
|
||||
<entry>last 3 digits of ISO year</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal>IY</literal></entry>
|
||||
<entry>last 2 digits of ISO year</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal>I</literal></entry>
|
||||
<entry>last digits of ISO year</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal>BC</literal> or <literal>B.C.</literal> or
|
||||
<literal>AD</literal> or <literal>A.D.</literal></entry>
|
||||
|
Reference in New Issue
Block a user