PHP code example of xpl / datetime

1. Go to this page and download the library: Download xpl/datetime library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

xpl / datetime example snippets


use Xpl\DateTime\DateTime as DateTime;
use Xpl\DateTime\DateTimeImmutable as DateTimeImmutable;
use Xpl\DateTime\DateTimeInterface as DateTimeInterface;
use Xpl\DateTime\Duration as DateInterval;
use Xpl\DateTime\TimeZone as DateTimeZone;