directoryiterator.getctime(3) php man page | unix.com

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 item

SYNOPSIS
public int DirectoryIterator::getCTime (void )
DESCRIPTION
Get the inode change time for the current DirectoryIterator item.
PARAMETERS
This function has no parameters.
RETURN VALUES
Returns the last change time of the file, as a Unix timestamp.
EXAMPLES
Example #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 1237423740
SEE ALSO
DirectoryIterator::getATime, DirectoryIterator::getMTime, filectime(3). PHP Documentation Group DIRECTORYITERATOR.GETCTIME(3)
Related Man Pages
refuse(3) - netbsd
filemtime(3) - php
callbackfilteriterator(3) - php
limititerator(3) - php
directoryiterator.getctime(3) - php
Similar Topics in the Unix Linux Community
how do you change the time format from 24_hour to 12_hour
File deliminated with | character - How do I change 1 value
changing a file when the inode modified time of the other file changes
Check if file .jpg is exist perl
Ip change SCO UNIX 3.2.4.2