|
-
Oct 31st, 1999, 02:48 AM
#1
Thread Starter
New Member
I am making a clock program. which will be used as a world time
clock it will start at GMT timezone and go from there. I am
wondering how to make this clock change its time, like add or
remove a hour or two. i am using a simple code using a label and
a timer.
Private Sub Timer1_Timer()
Label2.Caption = Time
Label3.Caption = Date
Form1.Caption = Time
End Sub
with the timer interval set at 1000
you can email me @ [email protected]
-
Oct 31st, 1999, 10:04 AM
#2
Hyperactive Member
Do you want the system clock to change its time or the program's clock to change its time?
-
Oct 31st, 1999, 11:24 PM
#3
Use the DateAdd() Function, eg.
Label3 = Format(DateAdd("h", 2, Now), "HH:MM:SS") 'Add 2 Hours to Current Time
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|