VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



TimeConv1970

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 Declarations
See the module.

Rate TimeConv1970

Upload

Download this snippet    Add to My Saved Code

TimeConv1970 Comments

No comments have been posted about TimeConv1970. Why not be the first to post a comment about TimeConv1970.

Post your comment

Subject:
Message:
0/1000 characters