toDateTime(epoch)

Converts an epoch day to a DateTime type.

You can only use this function when the time zone feature is enabled. If the time zone feature is disabled, use the toDate() function.

Note

1q = foreach q generate toDateTime(epoch) as "DateTime";

The format argument isn’t valid for converting epoch numerical values. It’s only valid for converting date string values.