Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zhli1142015 committed Apr 17, 2024
1 parent cc69c1b commit 222335d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions velox/docs/functions/spark/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,16 @@ These functions support TIMESTAMP and DATE input types.

.. spark:function:: unix_micros(timestamp) -> bigint
Returns the number of microseconds since 1970-01-01 00:00:00 UTC.
Returns the number of microseconds since 1970-01-01 00:00:00 UTC.::

SELECT unix_micros('1970-01-01 00:00:01'); -- 1000000

.. spark:function:: unix_millis(timestamp) -> bigint
Returns the number of milliseconds since 1970-01-01 00:00:00 UTC. Truncates
higher levels of precision.
higher levels of precision.::

SELECT unix_millis('1970-01-01 00:00:01'); -- 1000

.. spark:function:: unix_timestamp() -> integer
Expand Down

0 comments on commit 222335d

Please sign in to comment.