Another quick question for you PHP experts out there. I know I can use DateTimeZone::listIdentifi
ers() to obtain a list of all the time zones available to PHP, and I can use DateTimeZone::getTransitio
ns() to obtain neat info for each time zone like offsets, daylight savings time, etc.
My question is that once I have the offset for each time zone, is there a way to display the current time for each time zone, such as
America/Los Angeles (9:03 AM PST)
Any help would be greatly appreciated. I just need the code that will actually calculate the correct time based on the provided offset or time zone. Bonus points to the most elegant solution!