|
-
Mar 20th, 2008, 10:11 PM
#1
Thread Starter
New Member
-
Apr 16th, 2008, 08:22 AM
#2
Addicted Member
Re: Need Urgent Help!!! - VB6 - Time function Help
did you have a formula on calculating those time?
what is your base time? we will start on it.
-
Apr 16th, 2008, 08:54 AM
#3
Re: Need Urgent Help!!! - VB6 - Time function Help
User DateAdd like this:
Code:
Label2.Caption = DateAdd("n", 19, DateAdd("h", 15, Now))
-
Apr 16th, 2008, 02:58 PM
#4
Thread Starter
New Member
Re: Need Urgent Help!!! - VB6 - Time function Help
i got it figured out - long shot but it works
Code:
AlaskaTimeZone.Caption = Format(CDate(Time$) + TimeSerial(a_h, a_m, 0), "HH:NN:SS AM/PM")
HawaiiTimeZone.Caption = Format(CDate(Time$) + TimeSerial(h_h, h_m, 0), "HH:NN:SS AM/PM")
PacificTimeZone.Caption = Format(CDate(Time$) + TimeSerial(p_h, p_m, 0), "HH:NN:SS AM/PM")
MountianTimeZone.Caption = Format(CDate(Time$) + TimeSerial(m_h, m_m, 0), "HH:NN:SS AM/PM")
CentralTimeZone.Caption = Format(CDate(Time$) + TimeSerial(c_h, c_m, 0), "HH:NN:SS AM/PM")
EasternTimeZone.Caption = Format(CDate(Time$) + TimeSerial(e_h, e_m, 0), "HH:NN:SS AM/PM")
where a_h, h_h, p_h, m_h, c_h, e_h are difference in hours
and a_m, h_m, p_m, c_m, e_m are difference in minute
cannot explain but somehow its give me exact time in that time zones which matches with htt://www.time.gov
i have difference in hour and minutes stored as integer in database and when there is daylight saving i go in data base and change the difference and it reflect in application.
Thanks for the reply though
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
|