Jump to content

Unix Timestamps?


This topic is 6641 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Yes, but it is not necessarily a 10-digit number, just the number of seconds since Jan 1, 1970. And you're supposed to convert it from your local time to UTC, so:

Let ( [

unixEpoch = Timestamp ( Date ( 1 ; 1 ; 1970 ) ; Time (0 ; 0 ; 0 ) ) ;

offset = Time ( <> ; 0 ; 0 )

] ;

GetAsNumber ( yourTimestamp - offset - unixEpoch )

)

where yourOffsetFromUTC is the difference, in hours, between your local time and UTC. For example, for EASTERN STANDARD TIME enter -5, for EASTERN DAYLIGHT SAVING TIME enter -4.

Link to comment
Share on other sites

This topic is 6641 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.