Please note that, as in my example, it is quite possible to arrive at the same result without modulus (I showed alternatives with and without modulus).
Hilmar.
>>The other replies basically answered your question, but perhaps you want to know how to solve the math involved, since it can be used in a variety of situations (for instance, converting a monetary amount into available bills/coins).
>>
>>>>TotalSeconds = 72600
>>Hours = int(TotalSeconds / 3600)
>>SecondsLeft = TotalSeconds - lnHours * 3600
>>* or: SecondsLeft = TotalSeconds % 3600
>>Minutes = int(SecondsLeft / 60)
>>Seconds = SecondsLeft - 60 * Minutes
>>
>>* Output may be something like this:
>>? padl(Hours, 2, "0") + ":" + padl(Minutes, 2, "0") + ":" + padl(Seconds, 2, "0")
>>
>>
>>Hilmar.
>
>Thanks Hilmar,
>
>It was the modulus function that kept me from arriving at the destination. I was suffering from math block.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)