What's new

Welcome to the GSA Community!

This is the Official User Community for GE's GeoSpatial Analysis products. By registering with us, you'll be able to discuss, share and private message with other members of our Community.
Registration is currently only allowed with a personalized invitation code, which you might have received previously. If you haven't got one:
please get in touch with your GE contact person or your regional moderator(s): see FAQ.

SignUp Now!

Date/time conversion in GSA

Robert Lilley (GE)

GE Digital
Confirmed GSA Customer
Joined
Jul 22, 2020
Messages
37
Does any one know how to convert EPOCH time in seconds, to standard date and time format?
 

Frank Pistorius

Spatial Eye
Confirmed GSA Customer
Joined
May 26, 2020
Messages
36
Hi Robert,

In case you have a source field called epochSeconds, you could convert this to a date-time using the expression:

Date(1970, 1, 1).AddSeconds(epochSeconds)

In case the epochSeconds value would be something like 1622014566, this expression would result in the date-time 'May 26, 2021 7:36AM'.
Please have a look at the business field's display format for further formatting of the output.

Regards,

Frank
 
Last edited:
Top