summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2009-09-28 17:32:15 +0100
committerPádraig Brady <P@draigBrady.com>2010-07-01 13:12:52 +0100
commit8aa15b2be2bd2ab4b76d197a279abf8b9091680a (patch)
tree6a4d05b3b9d2c55875389f24dac5a4c032bca417 /doc
parent7336920dd07478b7bdae05ec599da4e2e66a94ff (diff)
downloadcoreutils-8aa15b2be2bd2ab4b76d197a279abf8b9091680a.tar.xz
ls: use the POSIX date style when the locale does not specify one
Previously we defaulted to "long-iso" format in locales without specific format translations, like the en_* locales for example. This reverts part of commit 6837183d, 08-11-2005, "ls ... acts like --time-style='posix-long-iso' if the locale settings are messed up" * src/ls.c (decode_switches): Only use the ISO format when specified. * NEWS: Mention the change in behavior. Reported by Daniel Qarras at http://bugzilla.redhat.com/525134
Diffstat (limited to 'doc')
-rw-r--r--doc/coreutils.texi9
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index f103bd869..5c2bd1a84 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -6927,11 +6927,10 @@ is 80.
@node Formatting file timestamps
@subsection Formatting file timestamps
-By default, file timestamps are listed in abbreviated form. Most
-locales use a timestamp like @samp{2002-03-30 23:45}. However, the
-default @acronym{POSIX} locale uses a date like @samp{Mar 30@ @ 2002}
-for non-recent timestamps, and a date-without-year and time like
-@samp{Mar 30 23:45} for recent timestamps.
+By default, file timestamps are listed in abbreviated form, using
+a date like @samp{Mar 30@ @ 2002} for non-recent timestamps, and a
+date-without-year and time like @samp{Mar 30 23:45} for recent timestamps.
+This format can change depending on the current locale as detailed below.
A timestamp is considered to be @dfn{recent} if it is less than six
months old, and is not dated in the future. If a timestamp dated