Ruby 4.0 リファレンスマニュアル

instance method Pathname#lutime

lutime(atime, mtime) -> IntegerRuby 3.2 から[permalink][rdoc][edit]

File.lutime(atime, mtime, self.to_s) と同じです。

Pathname#utime と違い、シンボリックリンクそのものの時刻を変更します(リンク先をたどりません)。

[PARAM] atime:
最終アクセス時刻を Time か、起算時からの経過秒数を数値で指定します。
[PARAM] mtime:
更新時刻を Time か、起算時からの経過秒数を数値で指定します。

[SEE_ALSO] File.lutime, Pathname#utime