我有一个包含多个文件的目录。我想按修改日期的差异对文件进行排序。
例如
file1.csv (created 14:00:55)
file2.csv (created 14:02:55)
file3.csv (created 15:22:55)
file4.csv (created 15:25:55)
file5.csv (created 16:28:55)
与设定时间比较file1
,例如 13:59(文件 1 = 1分钟时差) file1
, (文件file2
2 = 2 分钟时差),file2
(file3
文件 3 = 1 小时和 20 分钟时差),file3
(file4
文件 4 = 3 分钟时差),file4
和file5
(文件 5 = 1 小时差异)。并按照差异列出。该列表现在应该是:
file3.csv (created 15:22:55)
file5.csv (created 14:28:55)
file4.csv (created 15:25:55)
file1.csv (created 14:00:55)
file2.csv (created 15:02:55)