Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit65b731b

Browse files
committed
Fix to_timestamp() to not require upper/lower case matching for meridian
designations (AM/PM). Also separate out matching of a meridian withperiods (e.g. A.M.) and with those without.Do the same for AD/BC.Brendan Jurd
1 parentb75b663 commit65b731b

File tree

4 files changed

+138
-139
lines changed

4 files changed

+138
-139
lines changed

‎doc/src/sgml/func.sgml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.471 2009/02/06 21:15:11 tgl Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.472 2009/02/07 14:16:45 momjian Exp $ -->
22

33
<chapter id="functions">
44
<title>Functions and Operators</title>
@@ -4867,14 +4867,14 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
48674867
<entry>seconds past midnight (0-86399)</entry>
48684868
</row>
48694869
<row>
4870-
<entry><literal>AM</literal> or<literal>A.M.</literal> or
4871-
<literal>PM</literal> or <literal>P.M.</literal></entry>
4872-
<entry>meridian indicator (uppercase)</entry>
4870+
<entry><literal>AM</literal>,<literal>am</literal>,
4871+
<literal>PM</literal> or <literal>pm</literal></entry>
4872+
<entry>meridiem indicator (without periods)</entry>
48734873
</row>
48744874
<row>
4875-
<entry><literal>am</literal> or<literal>a.m.</literal> or
4876-
<literal>pm</literal> or <literal>p.m.</literal></entry>
4877-
<entry>meridian indicator (lowercase)</entry>
4875+
<entry><literal>A.M.</literal>,<literal>a.m.</literal>,
4876+
<literal>P.M.</literal> or <literal>p.m.</literal></entry>
4877+
<entry>meridiem indicator (with periods)</entry>
48784878
</row>
48794879
<row>
48804880
<entry><literal>Y,YYY</literal></entry>
@@ -4913,14 +4913,14 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})');
49134913
<entry>last digit of ISO year</entry>
49144914
</row>
49154915
<row>
4916-
<entry><literal>BC</literal> or<literal>B.C.</literal> or
4917-
<literal>AD</literal> or <literal>A.D.</literal></entry>
4918-
<entry>era indicator (uppercase)</entry>
4916+
<entry><literal>BC</literal>,<literal>bc</literal>,
4917+
<literal>AD</literal> or <literal>ad</literal></entry>
4918+
<entry>era indicator (without periods)</entry>
49194919
</row>
49204920
<row>
4921-
<entry><literal>bc</literal> or<literal>b.c.</literal> or
4922-
<literal>ad</literal> or <literal>a.d.</literal></entry>
4923-
<entry>era indicator (lowercase)</entry>
4921+
<entry><literal>B.C.</literal>,<literal>b.c.</literal>,
4922+
<literal>A.D.</literal> or <literal>a.d.</literal></entry>
4923+
<entry>era indicator (with periods)</entry>
49244924
</row>
49254925
<row>
49264926
<entry><literal>MONTH</literal></entry>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp