hive时间类

1.date_format:格式化时间

date_format(date,format):用于以不同的格式显示日期/时间数据。

2.date_add:时间跟天数相加

3.date_sub:时间跟天数相减

4.datediff:两个时间相减

5.regexp_replace:时间字符替换

 

 

6.date_format(regex_replace('/','-'),format):字符替换后,进行时间转换

posted @ 2021-09-07 17:55  蔡地像徐坤  阅读(329)  评论(0)    收藏  举报