Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> Unixtimestamp

Copy link to this message
Re: Unixtimestamp
Seems like the Piggybank's UnixToISO should do what you're looking for - if
not long, in what datatype is your unixtimestamp arriving to your Pig

Pig supports explicit casts [1], but I think the conversion you're referring
to should be handled implicitly.

[1] http://ofps.oreilly.com/titles/9781449302641/data_model.html#casts


On Fri, Jul 29, 2011 at 9:06 AM, Marian Condurache <

> Hi,
> Any ideas how to convert unixtimestamp to some readable date format like
> Is there a buit in function ?
> Because I tried UnixToIso....but it expects unix time long ....or is there
> a way to convert timestamp in time long in Pig ?
> LG, Marian