VB ~ Not exactly a hack, but a Clock code
Hello, I'll will be showing you CODES on how to make a clock using VB6
(Visual Basic 6)
(For a tutorial click >>HERE<<)
Recall the VB keywords that reference the current date and/or time:
Now Returns the current date and time together
Date Returns the current date
Time Returns the current time
For the examples that follow, assume that the current Date/Time (Now) is Friday, August 31, 2001 at 9:15:20 PM.
The following functions isolate the date portion and time portion, respectively, of a Time value:
Code:
Returns the time portion of a Date/Time value, with the date portion "zeroed out". (Note: When a date/time variable is "zeroed out", the date will actually be interpreted as December 30, 1899.)
Example:
Dim dtmTest As Date
dtmTest = TimeValue(Now)
At this point, the time portion of dtmTest is 9:15:20 PM, with a date portion of 0 (12/30/1899).
[[NOTE]]: This isn't mine nor I take credit, all credit goes to the 'owner' of this information/source.