Skip to content

Commit b812eac

Browse files
MeelahMejstirnaman
andauthored
Update time-and-date.md
Co-authored-by: Jason Stirnaman <[email protected]>
1 parent b63de59 commit b812eac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

content/shared/sql-reference/functions/time-and-date.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -885,8 +885,10 @@ LIMIT 1
885885

886886
## from_unixtime
887887

888-
Converts an integer to RFC3339 timestamp format (`YYYY-MM-DDT00:00:00.000000000Z`).
889-
Input is parsed as a [Unix nanosecond timestamp](/influxdb/version/reference/glossary/#unix-timestamp)
888+
Converts an integer (Unix timestamp in seconds) to a timestamp value.
889+
The underlying result is a timestamp (`Timestamp(TimeUnit::Second, None)`).
890+
In query results, JSON, CSV, and "pretty" formats render the timestamp as an ISO 8601 string (`YYYY-MM-DDTHH:MM:SS`, without a timezone indicator).
891+
When output to Parquet, the raw integer value (for example, `1641042000`) is preserved.
890892
and returns the corresponding timestamp.
891893

892894
```sql

0 commit comments

Comments
 (0)