VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Calculate InternetTime

Hiu-Hong Hau  (1 Submission)   Math/Dates   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

The function InternetTime() calculates the internettime, the new time standard from Swatch. You only have to call the function.

Assumes
Copy and Paste all of these code in one single module.

Returns
This function returns a value containing the internettime. If you want to convert it to a small string, you could use the following: Mid(Format(MyTime, "000.0000000"), 1, 3)

API Declarations
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'*****************************************************************'
'* The function InternetTime() returns the current time *'
'* in beats. The code to determine the timezone has been written *'
'* by Dror Saddan ([email protected]). *'
'* The code to calculate the internettime has been written by *'
'* Swatch. I have ported it to Visual Basic. *'
'* *'
'* Written by Hiu-Hong Hau ([email protected]) *'
'* Date: June 20th 1999 *'
'* Website: http://www.supervisie.nl/qlaunch *'
'* Website: http://www.supervisie.nl/gemini *'
'* *'
'* Take a look at QuickLaunch, a skinnable application launcher, *'
'* completely written in Visual Basic. *'
'*****************************************************************'
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Public Type SYSTEMTIME ' 16 Bytes
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
Public Type TIME_ZONE_INFORMATION
Bias As Long
StandardName(31) As Integer
StandardDate As SYSTEMTIME
StandardBias As Long
DaylightName(31) As Integer
DaylightDate As SYSTEMTIME
DaylightBias As Long
End Type
Public Declare Function GetTimeZoneInformation Lib "kernel32" (lpTimeZoneInformation _
As TIME_ZONE_INFORMATION) As Long

Rate Calculate InternetTime (3(3 Vote))
Calculate InternetTime.bas

Calculate InternetTime Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters