Hi Rongrong,
The event is really happens in Tuesday, January 22, 2019 9:03:02.001
PM, so I think the first function returns 1548162182001 is correct. It is the
Unix epoch time when the event happens.
But why the timestamp passed into the from_unixtime is changed to
1548190982001?
Hi Henry,
Unix epoch time values are always under GMT timezone, for example:
- 1548162182001 <=> GMT: Tuesday, January 22, 2019 1:03:02.001 PM, or CST:
Tuesday, January 22, 2019 9:03:02.001 PM.
- 1548190982001 <=> GMT: Tuesday, January 22, 2019 9:03:02.001 PM, or CST:
Wednesday, January 23, 2019 4
Hi,
Did you consider timezone in conversion in your UDF?
On Tue, Jan 22, 2019 at 5:29 AM 徐涛 wrote:
> Hi Experts,
> I have the following two UDFs,
> unix_timestamp: transform from string to Timestamp, with the
> arguments (value:String, format:String), return Timestamp
>from_u
Hi Experts,
I have the following two UDFs,
unix_timestamp: transform from string to Timestamp, with the
arguments (value:String, format:String), return Timestamp
from_unixtime:transform from Timestamp to String, with the arguments
(ts:Long, format:String), return Stri