Nifi convert UTC to unix time

Viewed 1583

I have a flowfile attribute which is a UTC datetime in the format of yyyy-MM-dd HH:mm:ss.SSS

I need to convert this to a unix timestamp.

How can this be done? I know its possible to convert Unix to the above format using Jolt:

"time": "${time:format('yyyy-MM-dd HH:mm:ss.SSS')}"

however, im not sure how to do this in reverse?

1 Answers
Related