Esempio n. 1
0
 /**
  * @return DateTime
  */
 public static function now()
 {
     return new self(Date::now(), Time::now());
 }
Esempio n. 2
0
 public function testIsLeap()
 {
     $this->assertTrue(Date::fromString('2012-01-01')->isLeap());
     $this->assertFalse(Date::fromString('2011-01-01')->isLeap());
 }