the date command

Bret Busby bret.busby at gmail.com
Fri Jun 12 21:16:39 UTC 2020


On 12/06/2020, Oliver Grawert <ogra at ubuntu.com> wrote:
> hi,
>
> Am Freitag, den 12.06.2020, 12:06 -0400 schrieb Peter Teuben:
>> it gets the default format from the
>> > system settings so I suggest you look there.
>> >
>> > Colin
>>
>> quite possibly i need to reboot then. I see my uptime is 20 days.
>>
>
> the date format is typically handled via the LC_TIME system variable:
>
> $ locale | grep LC_TIME
> LC_TIME="de_DE.UTF-8"
>
> ciao
> 	oli
>

Why does
PS1="\d ..."
return a different (the USA) date format, to the date format returned by the
date
command?

Is it possible, in any of the formatting of the displayed dates; the
value retuned by the date command, and the \d for the PS1 string,  to
set the displaying format for the date, to be the ISO format
(yyyy-mm-dd)?

-- 
Bret Busby
Armadale
West Australia
..............




More information about the ubuntu-users mailing list