I’ve got a dataset that includes Unix Timestamps that I’d like to convert to a DateTime and/or a Date and a Time value. I don’t see a way to do it in EDT v1.33.0 but maybe I’m just missing it.
If there is not a way, I’d like to add it as a feature request since I have these in some of the datasets I am dealing with.
The value comes in as a integer representing the number of seconds since Jan 1, 1970 UTC. There are simple converters for it, e.g.: https://www.unixtimestamp.com/
We don’t currently directly support unix timestamp → date or vice versa. But you can do it using the Javascript transform. Pass the number milli seconds since 1-Jan-1970 to Javascript Date().
I have found library functions to convert between milliseconds since epoch (1-Jan-1970) and ISO datetime, so it should hopefully be easy enough to add to Calculate in the next release. You would then just multiply by 1000 to get the Unix timestamp.