转自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说明 Read More
posted @ 2013-10-15 16:52 绿色冰点 Views(128278) Comments(1) Diggs(2) Edit