Automattic\WooCommerce\Internal\Admin\Logging\FileV2
File::get_modified_timestamp
Get the time of the last modification of the file, as a Unix timestamp. Or false if the file isn't readable.
Method of the class: File{}
No Hooks.
Returns
Int|false.
Usage
$File = new File(); $File->get_modified_timestamp();
File::get_modified_timestamp() File::get modified timestamp code WC 10.9.1
public function get_modified_timestamp() {
try {
$filesystem = FilesystemUtil::get_wp_filesystem();
$timestamp = $filesystem->mtime( $this->path );
} catch ( Exception $exception ) {
return false;
}
return $timestamp;
}