Skip to content

Instantly share code, notes, and snippets.

@jaccorens
Created February 21, 2016 10:01
Show Gist options
  • Save jaccorens/d04a3c3d02b3375222b5 to your computer and use it in GitHub Desktop.
Save jaccorens/d04a3c3d02b3375222b5 to your computer and use it in GitHub Desktop.
unix epoch timestamp to FileMaker timestamp
GetAsTimestamp ( ( GetAsNumber ( epoch ) ) + GetAsNumber ( Timestamp ("01/01/1970" ; "00:00:00" ) ) )
@bn0
Copy link

bn0 commented Sep 17, 2019

And back again (timestamp to epoch):

GetAsNumber($timestamp) - GetAsNumber(Timestamp("01/01/1970"; "00:00:00")) - (GetAsNumber(Get(CurrentTimestamp)) - Int(Get(CurrentTimeUTCMilliseconds)/1000))

@jaccorens
Copy link
Author

Excellent, thanks

@bcrisler
Copy link

THANK YOU!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment