Пример #1
0
 public function testNow()
 {
     $monthDay = MonthDay::now();
     $this->assertEquals(date('j'), $monthDay->toNative());
 }
Пример #2
0
 /**
  * Returns current Date
  *
  * @return Date
  */
 public static function now()
 {
     $date = new static(Year::now(), Month::now(), MonthDay::now());
     return $date;
 }