10 2013 档案
摘要:转自http://www.oratea.net/?p=944日期函数UNIX时间戳转日期函数:from_unixtime语法:from_unixtime(bigintunixtime[,stringformat])返回值:string说明:转化UNIX时间戳(从1970-01-0100:00:00UTC到指定时间的秒数)到当前时区的时间格式举例:hive>selectfrom_unixtime(1323308943,’yyyyMMdd’)fromdual;20111208获取当前UNIX时间戳函数:unix_timestamp语法:unix_timestamp()返回值:bigint说明
阅读全文