I have a Calendar Object, which is in UTC time zone. I want to convert the date and time in that Calendar Object to PST keeping in mind all the DST. I am looking to write a helper function with the following signature:
private Calendar getPSTTime(Calendar utcTime)
{
}
FYI: All of the available time zone String identifiers are returned by the method
TimeZone.getAvailableIDs(). That’s where I got"America/Los_Angeles"from.