Well, to be frankly, the example on the to_char udf is wrong TO_CHAR(myDate, '2001-02-03 04:05:06') does not produce the right result and is misleading.
This function does not give one the ability to format the date in a customized timezone. ALl it does is to allow timezone to be included in the output, but it is is always GMT. On Tue, Feb 25, 2014 at 11:04 AM, James Taylor <[email protected]>wrote: > http://phoenix.incubator.apache.org/language/functions.html#/to_char with > a formatString argument. > > > On Tue, Feb 25, 2014 at 10:58 AM, Sean Huo <[email protected]> wrote: > >> It seems that to_char udf always produces timestamp/date string in GMT. >> Is there a function that allows users to pass in a timezone string so >> that timestamp can be displayed accordingly? >> >> Thanks >> >> Sean >> > >
