当我尝试使用US \ Eastern时区转换字符串时,strtotime返回false,我应该使用哪个时区而不是那个?

If i do

$time = strtotime( '2013-3-16 11:40:00 US/Eastern' );
echo $time;

$time is false. The string is generated programmatically so i could alter the timezone to a supported one, what should i use?

I think this should work:

$time = DateTime::createFromFormat('Y-n-j H:i:s', 
          '2013-3-16 11:40:00', new DateTimeZone('US/Eastern'));

print $time->getTimestamp();
date_default_timezone_set('US/Eastern'); 
$time = strtotime( '2013-3-16 11:40:00' );
echo $time;

Comparing with @One Trick Pony it produces same result. DEMO

see this page

http://php.net/manual/en/datetime.settimezone.php

help you for set timezone