Re: ls has stopped using the ISO date format
Ron Johnson wrote:
> On 06/01/2010 03:23 PM, Andrei Popescu wrote:
>> On Ma, 01 iun 10, 13:56:12, Boyd Stephen Smith Jr. wrote:
>>
>>> From SUSv3:
>>> "The<date and time> field shall contain the appropriate date and
>>> timestamp of
>>> when the file was last modified. In the POSIX locale, the field shall
>>> be the
>>> equivalent of the output of the following date command:
>>>
>>> date "+%b %e %H:%M"
>>>
>>> if the file has been modified in the last six months, or:
>>>
>>> date "+%b %e %Y"
>> ...
>>> Of course, SUS basically ignores any locale other than "POSIX" or "C",
>>> but there is rarely a good reason to be different in other locales.
>>
>> One reason would be that '%b %e %Y' makes sense only to Americans>:-)
>>
>
> I've often wondered where that date convention originates. The military
> (or, at least, the Navy) and DEC, when it created VMS (don't know about
> it's earlier OSs) realizes the flaw in that format and thus uses
> DD-AAA-YYYY.
>
But for sorting easily, YYYY-MM-DD is the best format.
--
Erwan
Reply to: