Hive 时间戳和日期相互转换

时间戳转成日期 select distinct from_unixtime(1441565203,‘yyyy/MM/dd HH:mm:ss’) from test_date;web 日期转成时间戳 select distinct unix_timestamp(‘20111207 13:01:03’) from test_date; // 默认格式为“yyyy-MM-dd HH:mm:ss“svg
相关文章
相关标签/搜索