From b812eacb038e238dffc3c2136b0582c84ecc3399 Mon Sep 17 00:00:00 2001 From: Jameelah Mercer <36314199+MeelahMe@users.noreply.github.com> Date: Fri, 1 Aug 2025 10:51:21 -0700 Subject: [PATCH] Update time-and-date.md Co-authored-by: Jason Stirnaman --- content/shared/sql-reference/functions/time-and-date.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/content/shared/sql-reference/functions/time-and-date.md b/content/shared/sql-reference/functions/time-and-date.md index 0d8971674..06c68a38e 100644 --- a/content/shared/sql-reference/functions/time-and-date.md +++ b/content/shared/sql-reference/functions/time-and-date.md @@ -885,8 +885,10 @@ LIMIT 1 ## from_unixtime -Converts an integer to RFC3339 timestamp format (`YYYY-MM-DDT00:00:00.000000000Z`). -Input is parsed as a [Unix nanosecond timestamp](/influxdb/version/reference/glossary/#unix-timestamp) +Converts an integer (Unix timestamp in seconds) to a timestamp value. +The underlying result is a timestamp (`Timestamp(TimeUnit::Second, None)`). +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). +When output to Parquet, the raw integer value (for example, `1641042000`) is preserved. and returns the corresponding timestamp. ```sql