Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Parse about any English textual datetime description into a Unix timestamp
<?php strtotime(string $datetime, ?int $baseTimestamp = null): int|false
<?php         $format = strlen($date) === 8 ? 'm-d-yH:iA' : 'Y-m-dH:i';

        $dt = DateTime::createFromFormat($format, $date . $time);

        $lastModified = $dt ? $dt->getTimestamp() : (int) strtotime("$date $time");



        return new FileAttributes($path, (int) $size, null, $lastModified);

    }
<?php     {

        $path = $this->prefixer->stripPrefix($object->name());

        $info = $object->info();

        $lastModified = strtotime($info['updated']);



        if (substr($path, -1, 1) === '/') {

            return new DirectoryAttributes(rtrim($path, '/'), null, $lastModified);