GoAng Posted March 18, 2005 Author Posted March 18, 2005 I need to be able to create a filemaker calculation field that converts a given date into unix format. I have the formula for excel: [(DATE(Year,Month,Day)+TIME(Hour,Minute,Second)-25569)*(86400)] but converting the date to a numerical format in excel is not equaling the number that filemaker gives me. Help!
GoAng Posted March 18, 2005 Posted March 18, 2005 I need to be able to create a filemaker calculation field that converts a given date into unix format. I have the formula for excel: [(DATE(Year,Month,Day)+TIME(Hour,Minute,Second)-25569)*(86400)] but converting the date to a numerical format in excel is not equaling the number that filemaker gives me. Help!
GoAng Posted March 18, 2005 Author Posted March 18, 2005 I need to be able to create a filemaker calculation field that converts a given date into unix format. I have the formula for excel: [(DATE(Year,Month,Day)+TIME(Hour,Minute,Second)-25569)*(86400)] but converting the date to a numerical format in excel is not equaling the number that filemaker gives me. Help!
Lee Smith Posted March 18, 2005 Posted March 18, 2005 Try for the date part: ((Date Entry - Date(1,1,1970)) * 86400) I've never used this, I only collected it from some post. HTH Lee
Lee Smith Posted March 18, 2005 Posted March 18, 2005 Try for the date part: ((Date Entry - Date(1,1,1970)) * 86400) I've never used this, I only collected it from some post. HTH Lee
Lee Smith Posted March 18, 2005 Posted March 18, 2005 Try for the date part: ((Date Entry - Date(1,1,1970)) * 86400) I've never used this, I only collected it from some post. HTH Lee
GoAng Posted March 18, 2005 Author Posted March 18, 2005 Yes, that helped tremendously because it works! Thank you!
GoAng Posted March 18, 2005 Author Posted March 18, 2005 Yes, that helped tremendously because it works! Thank you!
GoAng Posted March 18, 2005 Author Posted March 18, 2005 Yes, that helped tremendously because it works! Thank you!
comment Posted March 18, 2005 Posted March 18, 2005 Oh, you mean Unix time. Try this: Let ( [ UnixEpoch = Timestamp ( Date ( 1 ; 1 ; 1970 ) ; Time (0 ; 0 ; 0 ) ) ; Offset = Time ( GMT ; 0 ; 0 ) ; Now = Timestamp ( theDate ; theTime - Offset ) ] ; GetAsNumber ( Now - UnixEpoch ) ) /* GMT = the difference, in hours, between your local time and GMT Example: for EASTERN STANDARD TIME enter -5; for EASTERN DAYLIGHT SAVING TIME enter -4. */
comment Posted March 18, 2005 Posted March 18, 2005 Oh, you mean Unix time. Try this: Let ( [ UnixEpoch = Timestamp ( Date ( 1 ; 1 ; 1970 ) ; Time (0 ; 0 ; 0 ) ) ; Offset = Time ( GMT ; 0 ; 0 ) ; Now = Timestamp ( theDate ; theTime - Offset ) ] ; GetAsNumber ( Now - UnixEpoch ) ) /* GMT = the difference, in hours, between your local time and GMT Example: for EASTERN STANDARD TIME enter -5; for EASTERN DAYLIGHT SAVING TIME enter -4. */
comment Posted March 18, 2005 Posted March 18, 2005 Oh, you mean Unix time. Try this: Let ( [ UnixEpoch = Timestamp ( Date ( 1 ; 1 ; 1970 ) ; Time (0 ; 0 ; 0 ) ) ; Offset = Time ( GMT ; 0 ; 0 ) ; Now = Timestamp ( theDate ; theTime - Offset ) ] ; GetAsNumber ( Now - UnixEpoch ) ) /* GMT = the difference, in hours, between your local time and GMT Example: for EASTERN STANDARD TIME enter -5; for EASTERN DAYLIGHT SAVING TIME enter -4. */
Recommended Posts
This topic is 7282 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 accountSign in
Already have an account? Sign in here.
Sign In Now