make() 공개 정적인 메소드

Create and return new Date instance.
public static make ( string $time = null, string | DateTimeZon\DateTimeZone $timezone = null ) : Date
$time string
$timezone string | DateTimeZon\DateTimeZone
리턴 Date
예제 #1
0
 public function testMake()
 {
     $now1 = Date::make('now');
     $now2 = new Date('now');
     $this->assertEquals($now1, $now2);
 }