为什么 DateTime::createFromFormat() 在我的第二个示例中失败并返回一个布尔值?
当我运行此命令时,第一个被正确创建为日期。第二个失败,返回一个,所以我无法格式化。时间是否超出范围?boolean
//works correctly
$startDate = "2015-05-06 10:49:20.637133";
$start = DateTime::createFromFormat('Y-m-d h:m:s.u',$startDate);
echo $start->format('m/d/y');
//doesn't work correctly
$startDate = "2015-05-12 15:49:06.821289";
$start = DateTime::createFromFormat('Y-m-d h:m:s.u',$startDate);
echo $start->format('m/d/y');