We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5204c4 commit dbed28eCopy full SHA for dbed28e
1 file changed
src/uu/ls/src/ls.rs
@@ -1038,6 +1038,8 @@ impl<'a> TextOutput<'a> {
1038
uid_cache: (),
1039
#[cfg(not(unix))]
1040
gid_cache: (),
1041
+ // Use "recent" format for files modified within the last ~0.5 years (31556952s).
1042
+ // According to GNU a Gregorian year has 365.2425 * 24 * 60 * 60 == 31556952 seconds on the average.
1043
recent_time_range: (SystemTime::now() - Duration::new(31_556_952 / 2, 0))
1044
..=SystemTime::now(),
1045
display_buf: Vec::with_capacity(if config.format == Format::Long {
0 commit comments