Convert Seconds to Other Time Metrics

Category:
Dates and Math
Type:
Modules
Difficulty:
Intermediate
Author:
Vladimir Milev

Version Compatibility: Visual Basic 6

More information:
This function offers seconds conversion up to five levels: munites, hours, days, weeks, years. The module is very flexible: depending on the values you pass to its function, it will return any or all of these levels. It also will return either a short (numeric) or long (text) version of the time string, and it will use the delimiter that you specify to separate the different levels.

This is almost anything you will probably ever need with seconds conversion, and if it isn't, it can be changed easily to suit your needs.


Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download time.zip