calculateDateTime() public static method

Calculates a datetime by parsing the time and date given.
public static calculateDateTime ( string $time, DateTime $referenceDate, $stopPrognosis = null ) : DateTime
$time string The time to parse, can contain an optional offset prefix (e.g., "02d")
$referenceDate DateTime The date
return DateTime The parsed time in ISO format
コード例 #1
0
ファイル: StopTest.php プロジェクト: BJDev95/Transport
 public function testParseDateTimeNoPrefix()
 {
     $this->assertEquals('2012-03-30T13:03:59+0200', Stop::calculateDateTime('13:03:59', $this->date)->format(\DateTime::ISO8601));
 }