Convert Seconds to Hours, Minutes Seconds as h:mm:ss

Category:
Dates and Math
Type:
Snippets
Difficulty:
Intermediate
Author:
Lyle E. Dodge

Version Compatibility:

More information:
Drop it in and run.

Handles up to 65533 seconds which returns 18:12:13, as in 18 hours, 12 minutes, and 13 seconds. That should suffice for most operations. If not, write me, and if I am compelled enough I might juice it up some more.

It's well commented but you might want to remove my wise-ass remarks if you want to hack on it some once you've figured out how it works.

Enjoy.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: