Skip to content

Commit

Permalink
add example in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
NEUpanning committed May 22, 2024
1 parent 59968ef commit 15e85ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions velox/docs/functions/spark/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ These functions support TIMESTAMP and DATE input types.

If we run the following query in the `Asia/Shanghai` time zone: ::

SELECT from_unixtime(100, 'yyyy-MM-dd HH:mm:ss'); -- '1970-01-01 08:01:40'
SELECT from_unixtime(3600, 'yyyy'); -- '1970'
SELECT from_unixtime(9223372036854775807, "yyyy-MM-dd HH:mm:ss"); -- '1970-01-01 07:59:59'

.. spark:function:: from_utc_timestamp(timestamp, string) -> timestamp
Expand Down

0 comments on commit 15e85ed

Please sign in to comment.