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