snekkis Posted December 15, 2004 Posted December 15, 2004 I'm trying to make a calculation field that is the total of several fields that pick value from a pop-up meny value list. In the value list the user can pick seconds and minutes. So, when next whole number is after 59, how do you make that calculation so the total show right amount of minutes and seconds?
transpower Posted December 15, 2004 Posted December 15, 2004 Convert minutes to seconds by multiplying by 60. Add this to the seconds. Divide by 60 to get the number of minutes; use Int to get the integer. Then multiply that by 60 and subtract from the total number of seconds to get the remainder in seconds.
RalphL Posted December 15, 2004 Posted December 15, 2004 Time is stored as seconds from midnight. So 60 * Minutes + Seconds displayed as a time field will show the correct minutes & seconds.
Recommended Posts
This topic is 7352 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