Man Page: directoryiterator.getctime
Operating Environment: php
Section: 3
DIRECTORYITERATOR.GETCTIME(3) 1 DIRECTORYITERATOR.GETCTIME(3) DirectoryIterator::getCTime - Get inode change time of the current DirectoryIterator itemSYNOPSISpublic int DirectoryIterator::getCTime (void )DESCRIPTIONGet the inode change time for the current DirectoryIterator item.PARAMETERSThis function has no parameters.RETURN VALUESReturns the last change time of the file, as a Unix timestamp.EXAMPLESExample #1 DirectoryIterator.getCTime(3) example This example displays the file name and last change time of the files in the directory containing the script. <?php $iterator = new DirectoryIterator(dirname(__FILE__)); foreach ($iterator as $fileinfo) { if ($fileinfo->isFile()) { echo $fileinfo->getFilename() . " changed at " . $fileinfo->getCTime() . " "; } } ?> The above example will output something similar to: apple.jpg changed at 1240398312 banana.jpg changed at 1238605440 index.php changed at 1240398935 pear.jpg changed at 1237423740SEE ALSODirectoryIterator::getATime, DirectoryIterator::getMTime, filectime(3). PHP Documentation Group DIRECTORYITERATOR.GETCTIME(3)
| Related Man Pages |
|---|
| recursivedirectoryiterator(3) - php |
| filemtime(3) - php |
| array_fill(3) - php |
| filesystemiterator(3) - php |
| recursivecallbackfilteriterator(3) - php |
| Similar Topics in the Unix Linux Community |
|---|
| How do I change the time in Unix? |
| php pear |
| Name change request |
| File deliminated with | character - How do I change 1 value |
| Check if file .jpg is exist perl |