VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

TimeConv1970

Darrin Ackerman  (1 Submission)   Math/Dates   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

This project was developed to calculate the date and time from a number of seconds from 1/1/1970. The Windows NT event log records the times/dates in this manner. There was also a need to do conversions for the local time zone (as the time reported was in GMT/UTC), and output formatting for the locale. The code is heavily commented. I tried to do most of the code through straight VB and make little external function calls. I'm sure there's a better way to do this. See the Command1_Click() procedure in frmMain and the readme.txt included.

Inputs
Number of Seconds (LONG)

Returns
String - the formatted date/time

Side Effects
None found so far.

API Declarations
See the module.

Rate TimeConv1970 (2(2 Vote))
TimeConv1970.bas

TimeConv1970 Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters