Ben Ball Posted January 17, 2007 Posted January 17, 2007 I have a calculation that times how ling someone is in a record. i.e TimeFinish - TimeStart = Actual Time My problem is when a record is created at 23:30 and finishes the next day/morning at 00:30 I have a minus time calculated.... same thing applies if it were 12 hour clock. If not worse as it happens twice a day. How can I over come this one?
Raybaudi Posted January 17, 2007 Posted January 17, 2007 Hi Assuming that you have 8 Advanced as shown under: "This Post", you can change your TimeFinish to a TimeStampFinish and your TimeStart to a TimeStampStart The calc: TimeStampFinish - TimeStampStart ( result time ) will give you the correct Actual Time
comment Posted January 17, 2007 Posted January 17, 2007 You could change your fields to Timestamp type. Alternatively, TimeFinish - TimeStart + ( TimeFinish < TimeStart ) * 86400 should work, provided no one stays long enough to cross midnight more than once. Filemaker's time calculations are ALWAYS based on 24-hour clock.
Recommended Posts
This topic is 6581 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