Are there any best practices for using DateInterval in PHP to avoid confusion?

When using DateInterval in PHP, it is important to be mindful of the format and units being used to avoid confusion. One best practice is to always specify the units explicitly when creating a DateInterval object to ensure clarity and consistency in your code.

// Specify the units explicitly when creating a DateInterval object
$interval = new DateInterval('P1D'); // 1 day