Skip to content

Commit dbed28e

Browse files
fdncredsylvestre
authored andcommitted
Add back (and shorten) comment for 31_556_952
1 parent a5204c4 commit dbed28e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/uu/ls/src/ls.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,8 @@ impl<'a> TextOutput<'a> {
10381038
uid_cache: (),
10391039
#[cfg(not(unix))]
10401040
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.
10411043
recent_time_range: (SystemTime::now() - Duration::new(31_556_952 / 2, 0))
10421044
..=SystemTime::now(),
10431045
display_buf: Vec::with_capacity(if config.format == Format::Long {

0 commit comments

Comments
 (0)