Skip to main content
Question

Converting to Epoch Time?

  • August 13, 2024
  • 1 reply
  • 102 views

schulte.a
Contributor
Forum|alt.badge.img+3

I am having trouble getting this converted to the right format. The times seem way off when I use the date time converter. 

 

This was a time stamp that was in a response message to a REST call that I got. Would anyone know how to prep these values + set up the date time converter correctly?

“1722597785000” ← format of timestamp

 

Thank you!

1 reply

debbiatsafe
Safer
Forum|alt.badge.img+20
  • Safer
  • August 14, 2024

Hello @schulte.a,

The timestamp is milliseconds since Unix Epoch. The %s and %Es flags in the DateTimeConverter represent seconds since Unix Epoch.

Divide the timestamp by 1000 before converting the timestamp in the DateTimeConverter. Doing this will result in 2024-08-02T11:23:05 from the sample timestamp and %Es as the input format.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings