Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #207146

Re: date(1) in stretch and buster

From Cindy Sue Causey <butterflybytes@gmail.com>
Newsgroups linux.debian.user
Subject Re: date(1) in stretch and buster
Date 2019-04-08 19:30 +0200
Message-ID <xKGfM-1bv-1@gated-at.bofh.it> (permalink)
References <xKEnD-8qa-1@gated-at.bofh.it> <xKG65-183-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 4/8/19, Étienne Mollier <etienne.mollier@mailoo.org> wrote:
> 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.


My half-penny's worth is that my reaction was, "Now that you said
that, I'd like mine to be in the '2009.04.08' format."

Which then brought to mind that at least some file managers, e.g.
Thunar for sure, allow us the option to alter the date format for e.g.
the "Date Modified" column.

That means those variables are buried in that package's code
somewhere. Somewhere at some point, I encountered a package that
offered a rather large selection that covers a lot more tastes in date
formatting solutions, but I can't remember where I saw that..

Found this over at Tecmint:

https://www.tecmint.com/set-system-locales-in-linux/

locale -k LC_TIME

Very coo AND further implies *WHAT ELSE can that little puppy do*, but
my brain's already cognitively sundowning so am passing the baton on
for someone who can run that full distance. :)

Cindy :)
-- 
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA

* runs with birdseed *

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

date(1) in stretch and buster Reco <recoverym4n@enotuniq.net> - 2019-04-08 17:30 +0200
  Re: date(1) in stretch and buster Étienne Mollier <etienne.mollier@mailoo.org> - 2019-04-08 19:20 +0200
    Re: date(1) in stretch and buster Cindy Sue Causey <butterflybytes@gmail.com> - 2019-04-08 19:30 +0200
      Re: date(1) in stretch and buster "Thomas Schmitt" <scdbackup@gmx.net> - 2019-04-08 19:50 +0200
      Re: date(1) in stretch and buster Étienne Mollier <etienne.mollier@mailoo.org> - 2019-04-08 20:20 +0200
        Re: date(1) in stretch and buster Greg Wooledge <wooledg@eeg.ccf.org> - 2019-04-08 21:30 +0200
    Re: date(1) in stretch and buster Reco <recoverym4n@enotuniq.net> - 2019-04-08 20:10 +0200
  Re: date(1) in stretch and buster Vincent Lefevre <vincent@vinc17.net> - 2019-04-09 15:50 +0200
    Re: date(1) in stretch and buster Gene Heskett <gheskett@shentel.net> - 2019-04-09 20:10 +0200
      Re: date(1) in stretch and buster Greg Wooledge <wooledg@eeg.ccf.org> - 2019-04-09 20:10 +0200
      Re: date(1) in stretch and buster Michael Stone <mstone@debian.org> - 2019-04-09 20:30 +0200
        Re: date(1) in stretch and buster Michael Stone <mstone@debian.org> - 2019-04-09 21:20 +0200
        Re: date(1) in stretch and buster Gene Heskett <gheskett@shentel.net> - 2019-04-09 21:20 +0200
      Re: date(1) in stretch and buster Étienne Mollier <etienne.mollier@mailoo.org> - 2019-04-09 20:40 +0200
        Re: date(1) in stretch and buster Curt <curty@free.fr> - 2019-04-09 22:10 +0200
          Re: date(1) in stretch and buster David Wright <deblis@lionunicorn.co.uk> - 2019-04-09 23:00 +0200
      Re: date(1) in stretch and buster David Wright <deblis@lionunicorn.co.uk> - 2019-04-09 20:40 +0200
        Re: date(1) in stretch and buster Étienne Mollier <etienne.mollier@mailoo.org> - 2019-04-09 20:50 +0200
          Re: date(1) in stretch and buster David Wright <deblis@lionunicorn.co.uk> - 2019-04-09 21:50 +0200
        Re: date(1) in stretch and buster Gene Heskett <gheskett@shentel.net> - 2019-04-09 21:40 +0200
    Re: date(1) in stretch and buster David Wright <deblis@lionunicorn.co.uk> - 2019-04-09 20:30 +0200
      Re: date(1) in stretch and buster Greg Wooledge <wooledg@eeg.ccf.org> - 2019-04-09 21:00 +0200
        Re: date(1) in stretch and buster David Wright <deblis@lionunicorn.co.uk> - 2019-04-09 22:00 +0200
      Re: date(1) in stretch and buster Vincent Lefevre <vincent@vinc17.net> - 2019-04-10 13:40 +0200
        Re: date(1) in stretch and buster David Wright <deblis@lionunicorn.co.uk> - 2019-04-10 18:00 +0200

csiph-web