Converting a value represention of minutes to actual minutes

  • Thread starter Thread starter Guest
  • Start date Start date
Please stick to one post
you do not need to stray from your current thread.


vzbuster said:
How do I convert 64 minutes to 01:04 (1Hour and 4 minutes)...Please
HELLLPPP!!!
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Use integer division and Mod:

intMinutes = 64
bytHours = intMinutes \ 60
bytMins = intMinutes Mod 60

In Debug window:

? 64 \ 60
1
? 64 mod 60
4

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQcInL4echKqOuFEgEQKTjQCg4fKYuC7brNwctyxzsWIujYI1+uwAoMlL
FFeIg6EzoY4oUYeKmSyUkhI6
=mxrY
-----END PGP SIGNATURE-----
 
Back
Top