ファイルの日付と時刻を取得する次のコマンドがあります
adb shell ls -l /sdcard/sample.txt
Result of this command :
-rwxrwxr-x system sdcard_rw 676 2013-09-24 11:23 sample.txt
今、私は秒で2013-09-24 11:23時間も欲しいです。2013-09-24 11:23:11のように
秒を含むファイル変更日を取得する方法。
ありがとう.. :)
投稿されたコードを微調整することで、次のコマンドを使用して機能させることができました。
adb -d shell ls -l time-style="+%Y-%m-%d %H:%M:%S" path_to_file_in_device
出力は次のとおりです。
-rw-rw-r-- root sdcard_rw 22357385 2013-09-25 22:42 launcher.apk
ls -l --time-style="+%Y-%m-%d %H:%M:%S" /sdcard/sample.txt