VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Returns GMT for time stamps in applications. Date and time in milliseconds

by Jack van-Niekerk (1 Submission)
Category: Windows System Services
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Sun 24th January 1999
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Returns GMT for time stamps in applications. Date and time in milliseconds

API Declarations


Declare Function SetSystemTime Lib "kernel32" (lpSystemTime As SYSTEMTIME) As Long
Type SYSTEMTIME
wYear As Integer
wMonth As Integer
wDayOfWeek As Integer
wDay As Integer
wHour As Integer
wMinute As Integer
wSecond As Integer
wMilliseconds As Integer
End Type



Rate Returns GMT for time stamps in applications. Date and time in milliseconds



Dim GMTime As SYSTEMTIME
Dim TheTime as String

    GetSystemTime GMTime
    TheTime = Format(GMTime.wMonth & "/" & GMTime.wDay & "/" & GMTime.wYear & "  " & GMTime.wHour & ":" & GMTime.wMinute & ":" & GMTime.wSecond & "." & GMTime.wMilliseconds, "m/d/yyyy hh:mm:ss.sss")

 

Download this snippet    Add to My Saved Code

Returns GMT for time stamps in applications. Date and time in milliseconds Comments

No comments have been posted about Returns GMT for time stamps in applications. Date and time in milliseconds. Why not be the first to post a comment about Returns GMT for time stamps in applications. Date and time in milliseconds.

Post your comment

Subject:
Message:
0/1000 characters