Skip to content

Commit 970621b

Browse files
committed
Fix error in cast format example
+ misc copy edit
1 parent 44da3ac commit 970621b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/sql.extensions/README.cast.format.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ The following patterns are currently implemented for datetime to string conversi
2222
| DDD | Day of the Year (001 - 366) |
2323
| DY | Short name of the Day (Mon) |
2424
| J | Julian Day (number of days since January 1, 4712 BC) |
25-
| HH / HH12 | Hour of the Day (01 - 12) without Period (for Period use A.M or P.M.) |
25+
| HH / HH12 | Hour of the Day (01 - 12) without Period (for Period use A.M. or P.M.) |
2626
| HH24 | Hour of the Day (00 - 23) |
2727
| MI | Minutes (00 - 59) |
2828
| SS | Seconds (00 - 59) |
2929
| SSSSS | Seconds after midnight (0 - 86399) |
3030
| FF1 - FF9 | Fractional seconds with the specified accuracy |
3131
| A.M. / P.M. | Period for 12 hours time (it doesn't matter which one is used, period will be inserted based on time) |
32-
| TZH | Time zone in Hours (-14 - 14) |
32+
| TZH | Time zone in Hours (-14 - 14) |
3333
| TZM | Time zone in Minutes (00 - 59) |
3434
| TZR | Time zone Name |
3535

@@ -60,7 +60,7 @@ Example:
6060
```
6161
SELECT CAST(CURRENT_TIMESTAMP AS VARCHAR(45) FORMAT 'DD.MM.YEAR HH24:MI:SS "is" J "Julian day"') FROM RDB$DATABASE;
6262
=========================
63-
14.6.2023 15:41:29 is 2460110 Julian day
63+
14.06.2023 15:41:29 is 2460110 Julian day
6464
```
6565

6666
## 2. STRING TO DATETIME

0 commit comments

Comments
 (0)