Update time-and-date.md

Co-authored-by: Jason Stirnaman <stirnamanj@gmail.com>
pull/6265/head
Jameelah Mercer 2025-08-01 10:51:21 -07:00 committed by GitHub
parent b63de5965a
commit b812eacb03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -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