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

Switch to Threaded View
Pig >> mail # user >> timezone option for timestamp to datetime conversion


Copy link to this message
-
Re: timezone option for timestamp to datetime conversion
I am not sure but have you looked at other libs from linkedin or twitter?

Regards,
Shahab
On Wed, Jul 17, 2013 at 3:26 PM, anup ahire <[EMAIL PROTECTED]> wrote:

> Thanks for reply.
> What I want to know is why ToDate(Long timestamp , String timezone) is not
> available and is there any reason behind it.
>
> ToDate(Long timestamp) always uses default time zone on pig client which I
> know is configurable.
>
> Best ,
> Anup
>
>
> On Wed, Jul 17, 2013 at 12:12 PM, Johnny Zhang <[EMAIL PROTECTED]>
> wrote:
>
> > I haven't try, but looks like you can use ToDate(String dtStr, String
> > format, String timezone) ?
> >
> > Johnny
> >
> >
> > On Wed, Jul 17, 2013 at 11:28 AM, anup ahire <[EMAIL PROTECTED]>
> wrote:
> >
> > > Hello,
> > >
> > > ToDate function on long timestamp always uses default time zone.
> > >
> > > Why option of specifying timezone for timestamp to datetime conversion
> is
> > > not available like its available for customized string to date time
> > > conversion ?
> > >
> > > Thanks,
> > > Anup
> > >
> >
>