Home > Enterprise >  Azure Data Factory convert EnqueuedTimeUtc to Unix timestamp
Azure Data Factory convert EnqueuedTimeUtc to Unix timestamp

Time:04-14

I have a Data Flow that gets data from an EventHub.

enter image description here

The events have a system property called EnqueuedTimeUtc:

enter image description here

I want to convert the value of EnqueuedTimeUtc to Unix timestamp or at least to DateTime in Data Factory.

There's aso a property called SystemProperties. It has a property called x-opt-enqueued-time. I want to get the value of x-opt-enqueued-time as a column.

enter image description here

But if I try to Parse the SystemProperties column I got the following error:

enter image description here

Is there a way of doing this?

Thanks!

CodePudding user response:

toTimestamp('04/12/2022 08:40:39 PM','MM/dd/yyyy HH:mm:ss') - toTimestamp('1970-01-01 00:00:00.000', 'yyyy-MM-dd HH:mm:ss.SSS')

  • Related