【问题标题】:what is difference between from_unixtime vs from_timestampfrom_unixtime 与 from_timestamp 有什么区别
【发布时间】:2019-05-17 09:13:07
【问题描述】:

有人可以帮助了解 Impala 中可用的日期格式函数之间的基本区别。

只是为了理解

from_unixtime 与 from_timestamp

当获取超过一百万行时,form_unixtime 或 from_timestap 哪个更好。

【问题讨论】:

    标签: timestamp unix-timestamp impala


    【解决方案1】:

    Unixtime 是自 1970 年 1 月 1 日(UTC/GMT 午夜)以来经过的秒数,不包括闰秒(在 ISO 8601 中:1970-01-01T00:00:00Z)。 此页面上的转换器将以秒、毫秒和微秒为单位的时间戳转换为可读日期。例如

    UNIXTIMESTAMP 值:

    1506285345
    

    时间戳值:

    2017-09-25 01:32:25
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-02-19
      • 2013-03-14
      • 2018-09-14
      • 2014-01-03
      • 2021-12-22
      • 2017-10-25
      • 2011-06-09
      • 2021-05-11
      相关资源
      最近更新 更多