るりまサーチ

最速Rubyリファレンスマニュアル検索!
54件ヒット [1-54件を表示] (0.083秒)
トップページ > クエリ:i[x] > クエリ:Time[x] > クラス:Pathname[x]

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. csv to_i
  5. matrix i

ライブラリ

キーワード

検索結果

Pathname#utime(atime, mtime) -> Integer (12613.0)

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

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

@param atime 最終アクセス時刻を Time か、起算時からの経過秒数を数値で指定します。

@param mtime 更新時刻を Time か、起算時からの経過秒数を数値で指定します。


@see File.utime...

Pathname#atime -> Time (12402.0)

File.atime(self.to_s) を渡したものと同じです。

...File.atime(self.to_s) を渡したものと同じです。

//emlist[例][ruby]{
require "pathname"

pathname
= Pathname("testfile")
pathname
.atime # => 2018-12-18 20:58:13 +0900
//}

@see File.atime...

Pathname#ctime -> Time (12402.0)

File.ctime(self.to_s) を渡したものと同じです。

...ile.ctime(self.to_s) を渡したものと同じです。

//emlist[例][ruby]{
require 'pathname'

I
O.write("testfile", "test")
pathname
= Pathname("testfile")
pathname
.ctime # => 2019-01-14 00:39:51 +0900
sleep 1
pathname
.chmod(0755)
pathname
.ctime # => 2019-01-14 00:39:52 +0900
//}

@see File.cti...

Pathname#mtime -> Time (12402.0)

File.mtime(self.to_s) を渡したものと同じです。

...File.mtime(self.to_s) を渡したものと同じです。


@see File.mtime...

Pathname#birthtime -> Time (12302.0)

File.birthtime(self.to_s) を渡したものと同じです。

...File.birthtime(self.to_s) を渡したものと同じです。

@raise NotImplementedError Windows のような birthtime のない環境で発生します。


@see File.birthtime...

絞り込み条件を変える