rivet Posted February 13, 2007 Posted February 13, 2007 I have attached a file that has a simple calc that extracts the hour from a time field. My final solution is for a FMP5/6 client. My Formula is: Abs(Mod(Hour(TimeStart)+12 , 12))& If(Hour(TimeStart) < 12, "A", "P") In FMP5 i can not get the proper result. timeIn5.zip
comment Posted February 13, 2007 Posted February 13, 2007 I don't quite see the problem - other than hours 0, 12 and 24 turning into 0, instead of the expected 12. But that will happen in both versions. Please provide an example of input value and the incorrect result. If you are on a Intel Mac, running FMP5 in Rosetta, the problem might be there: http://fmforums.com/forum/showtopic.php?tid/181094/ http://fmforums.com/forum/showtopic.php?tid/181095/
rivet Posted February 13, 2007 Author Posted February 13, 2007 from 7pm up the result starts at -5, -4, -3, etc. But now that you say there is no problem, I am curious if it is that the client is running FMP6 on a Mac Intel machine.
Recommended Posts
This topic is 6492 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