Skip to content

Commit 2e4486e

Browse files
committed
feat: add collapsable example section
1 parent ea16262 commit 2e4486e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,16 @@
33
<img src="./logo.jpeg" alt="pg-when-logo" width="256" align="right" style="margin: 0 0 1em 1em;"/>
44

55
A PostgreSQL extension for creating time values with natural language.
6+
7+
<details>
8+
9+
<summary>Example 1: Relative Past in a Specific Timezone</summary>
10+
11+
```sql
12+
SELECT when_is('5 days ago at this hour in Asia/Tokyo');
13+
SELECT seconds_at('5 days ago at this hour in Asia/Tokyo');
14+
SELECT millis_at('5 days ago at this hour in Asia/Tokyo');
15+
SELECT micros_at('5 days ago at this hour in Asia/Tokyo');
16+
```
17+
18+
</details>

0 commit comments

Comments
 (0)