patel_ravi
Mar 20th, 2008, 10:11 PM
Hi guys,
I am desperately looking for help in one of my project - been stuck on the issue from long time and fail to find solution myself... Help will be really appreciated.
Let me get to the point. I am creating the application with:
5 labels and 1 timer
1st label caption is current time on my system
and it is refreshed every second by timer
Now i want 2nd to 5th label have time for different time zones in US by deducting time difference between my location and US time zones.
for example:
if time here on system is <20th March, 2008 08:00:00> then the current time by Pacific Time Zone in US will be <19th March, 2008 21:14:00> means PST is around 15 Hours and 19 minutes behind my time zone.
How can i write a code to deduct 15 hours and 19 minutes from the time on 1st label and then display the return value on 2nd label and vice versa.
Please HELP ME!!:confused: :confused: :(
I am desperately looking for help in one of my project - been stuck on the issue from long time and fail to find solution myself... Help will be really appreciated.
Let me get to the point. I am creating the application with:
5 labels and 1 timer
1st label caption is current time on my system
and it is refreshed every second by timer
Now i want 2nd to 5th label have time for different time zones in US by deducting time difference between my location and US time zones.
for example:
if time here on system is <20th March, 2008 08:00:00> then the current time by Pacific Time Zone in US will be <19th March, 2008 21:14:00> means PST is around 15 Hours and 19 minutes behind my time zone.
How can i write a code to deduct 15 hours and 19 minutes from the time on 1st label and then display the return value on 2nd label and vice versa.
Please HELP ME!!:confused: :confused: :(