Automattic\WooCommerce\Internal\Admin\Logging\FileV2

File::get_modified_timestamp()publicWC 1.0

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.

Return

Int|false.

Usage

$File = new File();
$File->get_modified_timestamp();

File::get_modified_timestamp() code WC 9.3.3

public function get_modified_timestamp() {
	try {
		$filesystem = FilesystemUtil::get_wp_filesystem();
		$timestamp  = $filesystem->mtime( $this->path );
	} catch ( Exception $exception ) {
		return false;
	}

	return $timestamp;
}