Skip to content

Commit 40ed90e

Browse files
authored
Fix from_unixtime function documentation (apache#15844)
* Fix `from_unixtime` function documentation * Update scalar_functions.md
1 parent 611cebf commit 40ed90e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

datafusion/functions/src/datetime/from_unixtime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use datafusion_macros::user_doc;
3131

3232
#[user_doc(
3333
doc_section(label = "Time and Date Functions"),
34-
description = "Converts an integer to RFC3339 timestamp format (`YYYY-MM-DDT00:00:00.000000000Z`). Integers and unsigned integers are interpreted as nanoseconds since the unix epoch (`1970-01-01T00:00:00Z`) return the corresponding timestamp.",
34+
description = "Converts an integer to RFC3339 timestamp format (`YYYY-MM-DDT00:00:00.000000000Z`). Integers and unsigned integers are interpreted as seconds since the unix epoch (`1970-01-01T00:00:00Z`) return the corresponding timestamp.",
3535
syntax_example = "from_unixtime(expression[, timezone])",
3636
sql_example = r#"```sql
3737
> select from_unixtime(1599572549, 'America/New_York');

docs/source/user-guide/sql/scalar_functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2133,7 +2133,7 @@ _Alias of [date_trunc](#date_trunc)._
21332133

21342134
### `from_unixtime`
21352135

2136-
Converts an integer to RFC3339 timestamp format (`YYYY-MM-DDT00:00:00.000000000Z`). Integers and unsigned integers are interpreted as nanoseconds since the unix epoch (`1970-01-01T00:00:00Z`) return the corresponding timestamp.
2136+
Converts an integer to RFC3339 timestamp format (`YYYY-MM-DDT00:00:00.000000000Z`). Integers and unsigned integers are interpreted as seconds since the unix epoch (`1970-01-01T00:00:00Z`) return the corresponding timestamp.
21372137

21382138
```sql
21392139
from_unixtime(expression[, timezone])

0 commit comments

Comments
 (0)