Forum Replies Created
Viewing 1 post (of 1 total)
- AuthorPosts
- October 28, 2023 at 11:07 am in reply to: How to convert epoch seconds to human-readable time? #29526Eric PementParticipant
David, thanks for the suggestion, but it inserts the string “Invalid Date” into the replacement field.
I am using the Replace command (Ctrl+H), or “Search > Replace” from the menubar on top, with “Wrap Around” checked and “Regular Expressions” chosen in the radio buttonsI figured it out when I read the documentation on the JavaScript Date object. It wants milliseconds. Epoch seconds (Unix time) are literal seconds. They are not milliseconds.
The solution worked when I changed the replace portion to: \J new Date(“\0” * 1000)
- AuthorPosts
Viewing 1 post (of 1 total)