Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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

Posted

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/

Posted

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.

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 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.