ファイル時刻の秒単位まで取得

表題の通り。

■ 環境

  • Linux
  • Mac OSX El Capitan

■ Linux

下記コマンドで取得することができる。

$ ls --full-time test.txt
-rw-rw---- 1 worker worker 20076 2016-12-26 19:17:05.360541977 +0900 test.txt

■ Mac

下記コマンドで取得することができる。

$ ls -lT test.txt
-rw-r--r--  1 withsin  staff  74 12  26 19:11:52 2016 test.txt
$

以上。