Skip to content

Commit

Permalink
time: fix doc errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nalgeon committed Aug 8, 2024
1 parent b5fdd12 commit c360836
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/time.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The `sqlean-time` extension provides functionality for working with time and dur
[Creating values](#creating-time-values)
[Extracting fields](#extracting-time-fields)
[Unix time](#unix-time)
[Time comparison](#comparing-time)
[Time comparison](#time-comparison)
[Time arithmetic](#time-arithmetic)
[Rounding](#rounding)
[Formatting](#formatting)
Expand Down Expand Up @@ -395,7 +395,7 @@ Returns t as a Unix time, the number of seconds elapsed since January 1, 1970 UT
Unix-like operating systems often record time as a 32-bit number of seconds, but since `time_to_unix` returns a 64-bit value, it is valid for billions of years into the past or future.

```sql
select time_to_unix(time_now()));
select time_to_unix(time_now());
-- 1722979335
```

Expand All @@ -410,7 +410,7 @@ Returns t as a Unix time, the number of milliseconds elapsed since January 1, 19
The result is undefined if the Unix time in milliseconds cannot be represented by a 64-bit integer (a date more than 292 million years before or after 1970).

```sql
select time_to_milli(time_now()));
select time_to_milli(time_now());
-- 1722979335431
```

Expand All @@ -425,7 +425,7 @@ Returns t as a Unix time, the number of microseconds elapsed since January 1, 19
The result is undefined if the Unix time in microseconds cannot be represented by a 64-bit integer (a date before year -290307 or after year 294246).

```sql
select time_to_micro(time_now()));
select time_to_micro(time_now());
-- 1722979335431295
```

Expand All @@ -440,7 +440,7 @@ Returns t as a Unix time, the number of nanoseconds elapsed since January 1, 197
The result is undefined if the Unix time in nanoseconds cannot be represented by a 64-bit integer (a date before the year 1678 or after 2262).

```sql
select time_to_nano(time_now()));
select time_to_nano(time_now());
-- 1722979335431295000
```

Expand Down

0 comments on commit c360836

Please sign in to comment.