format()); self::assertEquals("05/04/2024 09:15:23", strval($date)); self::assertSame(2024, $date->year); self::assertSame(4, $date->month); self::assertSame(5, $date->day); self::assertSame(9, $date->hour); self::assertSame(15, $date->minute); self::assertSame(23, $date->second); self::assertSame(5, $date->wday); self::assertSame(14, $date->wnum); self::assertEquals("+04:00", $date->timezone); self::assertSame("05/04/2024 09:15:23", $date->datetime); self::assertSame("05/04/2024", $date->date); } function testClone() { $date = self::dt("now"); $clone = DateTime::clone($date); self::assertInstanceOf(DateTime::class, $clone); } }