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 21, 2024
1 parent 225d1f2 commit 59968ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions velox/docs/functions/spark/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ These functions support TIMESTAMP and DATE input types.
SELECT from_unixtime(3600, 'yyyy'); -- '1970'
SELECT from_unixtime(9223372036854775807, "yyyy-MM-dd HH:mm:ss"); -- '1969-12-31 23:59:59'

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

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

.. spark:function:: from_utc_timestamp(timestamp, string) -> timestamp
Returns the timestamp value from UTC timezone to the given timezone. ::
Expand Down

0 comments on commit 59968ef

Please sign in to comment.