Converting a value represention of minutes to actual minutes

Converting a value represention of minutes to actual minutes

Post by dnpidXN0ZX » Sat, 18 Dec 2004 05:01:04


How do I convert 64 minutes to 01:04 (1Hour and 4 minutes)...Please HELLLPPP!!!
 
 
 

Converting a value represention of minutes to actual minutes

Post by Rick » Sat, 18 Dec 2004 05:12:13

Please stick to one post
you do not need to stray from your current thread.




HELLLPPP!!!

 
 
 

Converting a value represention of minutes to actual minutes

Post by MGFoste » Sat, 18 Dec 2004 09:25:36

-----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-----