by Darrin Ackerman (1 Submission)
Category: Math/Dates
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating:
(2 Votes)
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)
Code Returns
String - the formatted date/time
Side Effects
None found so far.
API DeclarationsSee the module.
Upload