Stefan Sperling wrote on Tue, Jun 21, 2011 at 10:38:01 +0200: > On Tue, Jun 21, 2011 at 09:24:21AM +0100, Miguel Almeida wrote: > > And also, what does > > the LC_ALL=C part mean in the line you suggest? > > It implies LC_CTIME=C, which for in some cases controls how the date > will be formatted on systems that support the LC_TIME locale. > Setting LC_TIME to "C" guarantees the default POSIX formatting > rules will be used.
What Stefan and Ryan said. I just want to add that if LC_ALL and LC_CTIME are both set then the former wins, so portable code should set LC_ALL rather than LC_CTIME (to account for LC_ALL=randomvalue being possibly set in the environment).