mirror of
https://github.com/apache/impala.git
synced 2025-12-25 02:03:09 -05:00
[DOCS] IMPALA-6105 unix_timestamp returns a number of seconds
Added a note that the unix_timestamp function returns a number of seconds. Change-Id: Ie502322368c0052d4767191cf8f7ecb7ac5e7a16 Reviewed-on: http://gerrit.cloudera.org:8080/9084 Reviewed-by: John Russell <jrussell@cloudera.com> Reviewed-by: Tim Armstrong <tarmstrong@cloudera.com> Tested-by: Impala Public Jenkins
This commit is contained in:
committed by
Impala Public Jenkins
parent
1890230246
commit
f68aa87efd
@@ -2526,9 +2526,12 @@ select now() + interval 2 weeks as 2_weeks_from_now,
|
||||
|
||||
<dd>
|
||||
<indexterm audience="hidden">unix_timestamp() function</indexterm>
|
||||
<b>Purpose:</b> Returns an integer value representing the current date and time as a delta from the Unix
|
||||
epoch, or converts from a specified date and time value represented as a <codeph>TIMESTAMP</codeph> or
|
||||
<codeph>STRING</codeph>.
|
||||
<b>Purpose:</b> Returns a Unix time, which is a number of seconds
|
||||
elapsed since '1970-01-01 00:00:00' UTC. If called with no
|
||||
argument, the current date and time is converted to its Unix time. If
|
||||
called with arguments, the first argument represented as the
|
||||
<codeph>TIMESTAMP</codeph> or <codeph>STRING</codeph> is converted to
|
||||
its Unix time.
|
||||
<p>
|
||||
<b>Return type:</b> <codeph rev="2.2.0">bigint</codeph>
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user