Raju Nalawade
March 5th, 2000, 10:22 PM
Hi friends,
My question is purely related to Java. My problem is :
1. I want to convert the Time in a particular timezone to UTC. For eg. If the time is 5.30 pm in India then its UTC time is 12.00 noon.
2. I want to do the vice-versa of the above i.e, a time in UTC has to be converted in to any given timezone.
In both the above cases the DST (Daylight Saving Time) has to be taken in consideration.
Please let me know if there is any class or functions in java for doing such time conversions.
For reference: In MFC there is a function SystemTimeToTzSpecificLocalTime() which converts a Coordinated Universal Time (UTC) to a specified time zone's corresponding local time.
Is there a similar functionality in Java.
Thanx in Advance,
-Raju
email: raju@ruksun.com
My question is purely related to Java. My problem is :
1. I want to convert the Time in a particular timezone to UTC. For eg. If the time is 5.30 pm in India then its UTC time is 12.00 noon.
2. I want to do the vice-versa of the above i.e, a time in UTC has to be converted in to any given timezone.
In both the above cases the DST (Daylight Saving Time) has to be taken in consideration.
Please let me know if there is any class or functions in java for doing such time conversions.
For reference: In MFC there is a function SystemTimeToTzSpecificLocalTime() which converts a Coordinated Universal Time (UTC) to a specified time zone's corresponding local time.
Is there a similar functionality in Java.
Thanx in Advance,
-Raju
email: raju@ruksun.com