Manstone Posted August 17, 2005 Share Posted August 17, 2005 Hello, Is there anybody can help me to convert a time 34:23:10 (hh:mm:ss) in 1 day 12 hours 23 minutes and 10 seconds? Many thanks for your tips! Dom Link to comment Share on other sites More sharing options...
comment Posted August 17, 2005 Share Posted August 17, 2005 That would be extremely difficult. However, if you are willing to accept 1 day 10 hours 23 minutes and 10 seconds as the result, try something like: Let ( [ d = Div ( theTime ; 86400 ) ; r = Mod ( theTime ; 86400 ) ] ; d & " day/s " & Hour ( r ) & " hour/s " & Minute ( r ) & " minute/s " & Seconds ( r ) & " second/s " ) Link to comment Share on other sites More sharing options...
Manstone Posted August 18, 2005 Author Share Posted August 18, 2005 Thanks. It works perfectly. Sorry for the mistake about the total of hours. I just add a function If for putting the s when there's more than one day, hour, minute and/or second. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6680 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