New-York: GMT - 5
Chicago: GMT - 6
Time of departure: 07:00 (New-York time); travel time: 02:48.
How do I know at what time I'll be in Chicago? (Chicago time)
I'm sorry that I could not give its decision. Thanks.
New-York: GMT - 5
Chicago: GMT - 6
Time of departure: 07:00 (New-York time); travel time: 02:48.
How do I know at what time I'll be in Chicago? (Chicago time)
I'm sorry that I could not give its decision. Thanks.
You would use a combination of DateTime()
, DateInterval()
, and DateTimeZone()
:
$flight = new DateTime('07:00', new DateTimeZone('America/New_York'));
$flight->add(new DateInterval('PT2H48M'));
$flight->setTimeZone(new DateTimeZone('America/Chicago'));
echo $flight->format('h:iA');
DateTime()
object representing the departure time in New York's timezone