Rich Rohde - 2019-09-16 18:01:06 -
In reply to message 1 from Superluk
Thank you for requesting an example. I have provided example in the description and should be approved soon.
Here is what I provided
Source:
$fileUtil = new \RichWare\fileinfo\v1_0_0\TFileInfo();
$fileUtil->fileinfo('E:\Program Files\PHP\7.2.6\php.ini');
echo "Modified date: ".$fileUtil->mtime_fmt.PHP_EOL;
echo "Size: ".$fileUtil->size.PHP_EOL;
echo "Basename: ".$fileUtil->basename.PHP_EOL;
echo "Type: ".$fileUtil->type.PHP_EOL;
echo "Accessed date: ".$fileUtil->atime.PHP_EOL;
echo "Accessed formatted date: ".$fileUtil->atime_fmt.PHP_EOL;
Result:
Modified date: 09-09-2019 01:33:57
Size: 72530
Basename: php.ini
Type: file
Accessed date: 1568061237
Accessed formatted date: 09-09-2019 01:33:57