Touch a file to set access and modifiction time.

@param  string  $path
@param  int  $time
@param  int  $atime
@return int
512412
public function touch($path, $time = null, $atime = null, $force = false)
    {
        if ($force) {
            $time ? @touch($path, $time, $atime) : @touch($path);
        } else {
            $time ? touch($path, $time, $atime) : touch($path);
        }
    }
470455
private function filemtime($path)
	{
		if($this->embedExpiry)
			return (int)@file_get_contents($path,false,null,0,10);
		else
			return @filemtime($path);
	}
631744
public static function touch($files, $time = null, $atime = null)
    {
        self::ensureFileSystem()->touch($files, $time, $atime);
    }
1283879
def _get_file_creation_time(file_path):
    

    ctime = getctime(file_path)

    if ctime < -11644473600 or ctime >= 253402300800:
        raise FileTimeOutOfRangeException(ctime)

    creation_time_datetime = datetime.utcfromtimestamp(ctime)

    creation_time_epoch_offset = creation_time_datetime - datetime(1601, 1, 1)

    creation_time_secs_from_epoch = _convert_timedelta_to_seconds(creation_time_epoch_offset)

    creation_time_filetime = int(creation_time_secs_from_epoch * (10 ** 7))

    file_creation_time = bytearray(8)
    pack_into(b"Q", file_creation_time, 0, creation_time_filetime)

    return file_creation_time
1149447
public function getModifiedAt() {
		$timestamp = filemtime($this->pathname);
		$time = new DateTime();
		$time->setTimestamp($timestamp);
		return $time;
	}
477306
def touch(filename, timestamp):
    """"""
    if timestamp is not None:
        timestamp = (timestamp, timestamp)  # atime, mtime

    from os import utime
    utime(filename, timestamp)
758065
protected function setModificationTime($destinationFilename, $newMtime)
  {
    $status = touch($destinationFilename, $newMtime);
    if ($status===false)
    {
      $this->logError("Unable to set mtime of file '%s'", $destinationFilename);
    }
  }
697391
function mtime()
    {
        $mtime = isset( $this->metaData['mtime'] ) ? $this->metaData['mtime'] : null;
        eZDebugSetting::writeDebug( 'kernel-clustering', $mtime, "fs::mtime( {$this->filePath} )" );
        return $mtime;
    }
80853
def modification_time(path)
      is_uri = URI.parse(path)
      if !is_uri.host.nil?
        return web_modification_time is_uri
      end
      File.new(path).mtime
    end
595259
public function getTimestamp($path)
    {
        [$prefix, $path] = $this->getPrefixAndPath($path);

        return $this->getFilesystem($prefix)->getTimestamp($path);
    }
15111
public function setFile($key, $content = null, $mtime = null)
    {
        if (null === $mtime) {
            $mtime = time();
        }

        $this->files[$key] = array(
            'content' => (string) $content,
            'mtime' => (integer) $mtime,
        );
    }
44403
private function setFilesMtime()
  {
    $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($this->myWorkDirName,
                                                                          FilesystemIterator::UNIX_PATHS));
    foreach ($files as $full_path => $file)
    {
      if ($file->isFile())
      {
        $key = substr($full_path, strlen($this->myWorkDirName.'/'));
        if (isset($this->myLastCommitTimes[$key]))
        {
          $this->logVerbose("Set mtime of %s to %s", $full_path, date('Y-m-d H:i:s', $this->myLastCommitTimes[$key]));
          $success = touch($full_path, $this->myLastCommitTimes[$key]);
          if (!$success)
          {
            $this->logError("Unable to set mtime of file %s", $full_path);
          }

          $this->myCount++;
        }
      }
    }
  }
398992
public function time($name = null, $value = null, $attr = null)
    {
        return $this->createInput('time', $name, $value, $attr);
    }
1216091
public function loadTimestamp($file_path = null)
    {
        if (is_null($file_path)) {
            $d = $this->load();
        } else {
            $d = $this->loadFile($file_path);
        }

        return @$d['e'];
    }
1174051
public function setTimestamp(AssetTarget $build, $time)
    {
        $ext = $build->ext();
        if (empty($this->timestamp[$ext])) {
            return;
        }
        $data = $this->_readTimestamp();
        $name = $this->buildCacheName($build);
        $data[$name] = $time;
        $this->_writeTimestamp($data);
    }
1326843
def reset_time(path='.', amt=None):
    '''
    
    '''
    if not amt:
        amt = int(time.time())
    for fname in os.listdir(path):
        fname = os.path.join(path, fname)
        if os.path.isdir(fname):
            reset_time(fname, amt=amt)
        os.utime(fname, (amt, amt,))
768715
public function setLastModifiedTime(PhingFile $f, $time)
    {
        $path = $f->getPath();
        $success = @touch($path, $time);
        if (!$success) {
            throw new IOException("Could not touch '" . $path . "' due to: $php_errormsg");
        }
    }