hadoop - Apache PIG - Convert millseconds into TimeStamp Unix -


i've following field: 1388481000000 number of milliseconds elapsed unix epoch (1970-01-01 utc)

how can convert unix timestamp? i'm trying use:

tounixtime(1388481000000,'dd/mm/yyyyhh:mm:ss','gmt') 

but gives me error...

how can convert unix timestamp? many thanks!

you mixing things up.tounixtime syntax tounixtime(datetime) parameter datetime object.what have milliseconds elapsed unix epoch (1970-01-01 utc).i assume trying convert milliseconds datetime object have use todate , syntax todate(milliseconds).

todate(1388481000000) 

Comments