On 4/8/19 5:26 PM, Reco wrote:
>       Dear list,
> 
> the following thing got my attention recently:
> 
> stretch$ TZ=UTC date
> Mon Apr  8 15:22:02 UTC 2019
> buster$ TZ=UTC date
> Mon 08 Apr 2019 03:22:04 PM UTC
> 
> It's not that I depend on certain date format in scripts, but I got used
> to this 24-hour time format after all these years. And yes, I can commit
> into my memory that I can achieve old behaviour with "date -R" or
> "busybox date".
> 
> My question is - can anyone suggest me appropriate LC_TIME setting that
> can show buster's date in stretch's format?
> 

Good Day Reco,

>From Sid:

        $ LC_TIME=en_US.UTF-8 TZ=UTC date
        Mon 08 Apr 2019 05:07:44 PM UTC

        $ LC_TIME=C.UTF-8 TZ=UTC date
        Mon Apr  8 17:08:59 UTC 2019

If you speak C, it looks like a good bet.

Kind Regards,
-- 
Étienne Mollier <etienne.moll...@mailoo.org>

Reply via email to