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


Groups > comp.os.linux.misc > #1446 > unrolled thread

Date and time format

Started byJeroen Belleman <jeroen@nospam.please>
First post2011-06-23 09:21 +0200
Last post2011-06-28 22:55 +0200
Articles 12 — 8 participants

Back to article view | Back to comp.os.linux.misc


Contents

  Date and time format Jeroen Belleman <jeroen@nospam.please> - 2011-06-23 09:21 +0200
    Re: Date and time format faeychild <faeychild@noname.afraid.org> - 2011-06-23 19:51 +1000
      Re: Date and time format Jeroen <jeroen@nospam.please> - 2011-06-23 23:47 +0200
        Re: Date and time format faeychild <faeychild@noname.afraid.org> - 2011-06-24 09:33 +1000
        Re: Date and time format Jean-David Beyer <jeandavid8@verizon.net> - 2011-06-24 11:04 -0400
    Re: Date and time format Rob van der Putten <rob@sput.nl> - 2011-06-23 14:04 +0200
      Re: Date and time format Jeroen <jeroen@nospam.please> - 2011-06-23 20:59 +0200
      Re: Date and time format Aleksandar_B <aleks@ndar.b> - 2011-06-25 01:54 +0200
        Re: Date and time format Feranija <feranija@net...> - 2011-06-24 18:22 -0700
          Re: Date and time format Jeroen Belleman <jeroen@nospam.please> - 2011-06-28 16:38 +0200
            Re: Date and time format Tim Watts <tw@dionic.net> - 2011-06-28 17:11 +0100
              Re: Date and time format Jeroen <jeroen@nospam.please> - 2011-06-28 22:55 +0200

#1446 — Date and time format

FromJeroen Belleman <jeroen@nospam.please>
Date2011-06-23 09:21 +0200
SubjectDate and time format
Message-ID<ituph5$qqu$1@speranza.aioe.org>
This morning I tried to to find out how to set the time format
for the Thunderbird mail client to 24-hour format. Before I
knew it, I was digging into 'locale', environment variables
with unlikely names and cryptic values, startup scripts, etc,
etc.

This is an incredibly convoluted mess! Who thought this up?
What drugs were they on?

What's wrong with 'System preferences -> date format'?
I'm by no means a Mac fan, but at least they got that right.

Help! Linux is being fucked up by feature junkies!

Jeroen Belleman

[toc] | [next] | [standalone]


#1447

Fromfaeychild <faeychild@noname.afraid.org>
Date2011-06-23 19:51 +1000
Message-ID<itv2ab$fde$1@dont-email.me>
In reply to#1446
Jeroen Belleman wrote:

> This morning I tried to to find out how to set the time format
> for the Thunderbird mail client to 24-hour format. Before I
> knew it, I was digging into 'locale', environment variables
> with unlikely names and cryptic values, startup scripts, etc,
> etc.
 It is probably not set for Thunderbird specifically.
It is more likely in "region and language".
 If you click up "desktop settings"
then " region and language"
them "time and dates"
then your time format should be HH:MM:SS
all capitals. 
this will usually get you a 24 clock.

I assume Thunderbird will pick it up

If you have the digital clock enabled in the task bar it should reflect 24 
hour time

-- 
faeychild
Mandriva Linux release 2010.2 (Official) for i586
Running KDE 4.4.5 on 2.6.33.7-desktop-2mnb kernel.

[toc] | [prev] | [next] | [standalone]


#1451

FromJeroen <jeroen@nospam.please>
Date2011-06-23 23:47 +0200
Message-ID<iu0ce8$rak$1@speranza.aioe.org>
In reply to#1447
On 06/23/2011 11:51 AM, faeychild wrote:
> Jeroen Belleman wrote:
> 
>> This morning I tried to to find out how to set the time format
>> for the Thunderbird mail client to 24-hour format. Before I
>> knew it, I was digging into 'locale', environment variables
>> with unlikely names and cryptic values, startup scripts, etc,
>> etc.
>  It is probably not set for Thunderbird specifically.
> It is more likely in "region and language".
>  If you click up "desktop settings"
> then " region and language"
> them "time and dates"
> then your time format should be HH:MM:SS
> all capitals. 
> this will usually get you a 24 clock.
> 
> I assume Thunderbird will pick it up
> 
> If you have the digital clock enabled in the task bar it should reflect 24 
> hour time
> 

The funny thing is that the task bar clock *does* have a format setting
in its preferences, which it obeys without problems. Easy! This locale
stuff is grotesque in comparison. Thunderbird's time format is
unaffected and stubbornly shows things like 12:04 AM. Quick now: Is
that just after midnight or just after noon? (Don't bother answering
that: I know. :-) )

Thanks for your comments.

Jeroen Belleman

[toc] | [prev] | [next] | [standalone]


#1452

Fromfaeychild <faeychild@noname.afraid.org>
Date2011-06-24 09:33 +1000
Message-ID<iu0ifj$oe8$4@dont-email.me>
In reply to#1451
Jeroen wrote:


> 
> The funny thing is that the task bar clock *does* have a format setting
> in its preferences, which it obeys without problems. Easy! This locale


Interesting! mine doesn't. 
It does have "Speak Time" under general, which I've never heard operate

-- 
faeychild
Mandriva Linux release 2010.2 (Official) for i586
Running KDE 4.4.5 on 2.6.33.7-desktop-2mnb kernel.

[toc] | [prev] | [next] | [standalone]


#1458

FromJean-David Beyer <jeandavid8@verizon.net>
Date2011-06-24 11:04 -0400
Message-ID<iu2917011ff@news6.newsguy.com>
In reply to#1451
Jeroen wrote:
> On 06/23/2011 11:51 AM, faeychild wrote:
>> Jeroen Belleman wrote:
>>
>>> This morning I tried to to find out how to set the time format
>>> for the Thunderbird mail client to 24-hour format. Before I
>>> knew it, I was digging into 'locale', environment variables
>>> with unlikely names and cryptic values, startup scripts, etc,
>>> etc.
>>  It is probably not set for Thunderbird specifically.
>> It is more likely in "region and language".
>>  If you click up "desktop settings"
>> then " region and language"
>> them "time and dates"
>> then your time format should be HH:MM:SS
>> all capitals. 
>> this will usually get you a 24 clock.
>>
>> I assume Thunderbird will pick it up
>>
>> If you have the digital clock enabled in the task bar it should reflect 24 
>> hour time
>>
> 
> The funny thing is that the task bar clock *does* have a format setting
> in its preferences, which it obeys without problems. Easy! This locale
> stuff is grotesque in comparison. Thunderbird's time format is
> unaffected and stubbornly shows things like 12:04 AM. Quick now: Is
> that just after midnight or just after noon? (Don't bother answering
> that: I know. :-) )
> 
I know, too, but most people are quite certain and are mostly wrong.
Hint to those who do not know.

12AM and 12PM are 24 hours apart.


-- 
  .~.  Jean-David Beyer          Registered Linux User 85642.
  /V\  PGP-Key: 9A2FC99A         Registered Machine   241939.
 /( )\ Shrewsbury, New Jersey    http://counter.li.org
 ^^-^^ 11:00:02 up 2 days, 31 min, 3 users, load average: 4.62, 5.14, 5.20

[toc] | [prev] | [next] | [standalone]


#1448

FromRob van der Putten <rob@sput.nl>
Date2011-06-23 14:04 +0200
Message-ID<4e032bb5$0$30724$e4fe514c@dreader16.news.xs4all.nl>
In reply to#1446
Hi there


Jeroen Belleman wrote:

> This morning I tried to to find out how to set the time format
> for the Thunderbird mail client to 24-hour format. Before I
> knew it, I was digging into 'locale', environment variables
> with unlikely names and cryptic values, startup scripts, etc,
> etc.
> 
> This is an incredibly convoluted mess! Who thought this up?
> What drugs were they on?
> 
> What's wrong with 'System preferences -> date format'?
> I'm by no means a Mac fan, but at least they got that right.
> 
> Help! Linux is being fucked up by feature junkies!

This is actually a libc thing.
man locale.
Switching from a US to a GB locale will probably get you what you want.


Regards,
Rob
-- 
Wim T. Schippers for president
http://nl.wikipedia.org/wiki/Bestand:Universiteit_Twente_Verzonken_Torentje_van_Drienerlo.jpg

[toc] | [prev] | [next] | [standalone]


#1450

FromJeroen <jeroen@nospam.please>
Date2011-06-23 20:59 +0200
Message-ID<iu02ht$3is$1@speranza.aioe.org>
In reply to#1448
On 06/23/2011 02:04 PM, Rob van der Putten wrote:
> Hi there
> 
> 
> Jeroen Belleman wrote:
> 
>> This morning I tried to to find out how to set the time format
>> for the Thunderbird mail client to 24-hour format. Before I
>> knew it, I was digging into 'locale', environment variables
>> with unlikely names and cryptic values, startup scripts, etc,
>> etc.
>>
>> This is an incredibly convoluted mess! Who thought this up?
>> What drugs were they on?
>>
>> What's wrong with 'System preferences -> date format'?
>> I'm by no means a Mac fan, but at least they got that right.
>>
>> Help! Linux is being fucked up by feature junkies!
> 
> This is actually a libc thing.
> man locale.
> Switching from a US to a GB locale will probably get you what you want.

Yeah, maybe. That's the whole problem. The actual format is hidden
behind some obscure (I'm sure some would call it 'abstract') mnemonic,
and it requires a good deal of effort and knowledge to figure out what
it does. And it's likely to have a number of undesirable side effects,
too.

This is *not* the right right way to do it!

I've been a Linux user since 1999, but for me, it's a tool, not a
purpose all by itself. To efficiently use a tool, it mustn't change
its behaviour too often. Linux was still compact and efficient in
1999, but these days it's become a baroque and bloated contraption
just like some well known software products from the Redmond area.

Sigh! Thanks for your comment, nonetheless.

Jeroen Belleman

[toc] | [prev] | [next] | [standalone]


#1459

FromAleksandar_B <aleks@ndar.b>
Date2011-06-25 01:54 +0200
Message-ID<iu384b$phr$1@ss408.t-com.hr>
In reply to#1448

On 2011-06-23 14:04, Rob van der Putten wrote:
> This is actually a libc thing.
> man locale.
> Switching from a US to a GB locale will probably get you what you want.

In regards to TB, you can create a script with:

#!/bin/sh
export LC_TIME=en_DK.utf8
/usr/bin/thunderbird $*

and use it to start TB.

[toc] | [prev] | [next] | [standalone]


#1460

FromFeranija <feranija@net...>
Date2011-06-24 18:22 -0700
Message-ID<iu3d9i$s6p$1@dont-email.me>
In reply to#1459
On 24.06.2011 16:54, Aleksandar_B wrote:
>
>
> On 2011-06-23 14:04, Rob van der Putten wrote:
>> This is actually a libc thing.
>> man locale.
>> Switching from a US to a GB locale will probably get you what you
>> want.
>
> In regards to TB, you can create a script with:
>
> #!/bin/sh
> export LC_TIME=en_DK.utf8
> /usr/bin/thunderbird $*
>
> and use it to start TB.


Or just have the variable in ~/.bashrc. No script necessary. Works well.

[toc] | [prev] | [next] | [standalone]


#1496

FromJeroen Belleman <jeroen@nospam.please>
Date2011-06-28 16:38 +0200
Message-ID<iucp1b$5qj$1@speranza.aioe.org>
In reply to#1460
Feranija wrote:
> On 24.06.2011 16:54, Aleksandar_B wrote:
>>
>>
>> On 2011-06-23 14:04, Rob van der Putten wrote:
>>> This is actually a libc thing.
>>> man locale.
>>> Switching from a US to a GB locale will probably get you what you
>>> want.
>>
>> In regards to TB, you can create a script with:
>>
>> #!/bin/sh
>> export LC_TIME=en_DK.utf8
>> /usr/bin/thunderbird $*
>>
>> and use it to start TB.
> 
> 
> Or just have the variable in ~/.bashrc. No script necessary. Works well.

But the Thunderbird process is no child of any of my open shells,
so I don't see how this would work. I suppose I could put it in
some window manager startup script, or some such.

Anyway, I tracked down how Thunderbird gets started. It turns out
to be a shell script in /usr/lib/thunderbird-2.0.0.24/, to which
I added the line 'export LC_TIME=en_DK.utf8', as suggested above.

This works. Until the next update, probably.

I'm still flabbergasted that a thing that should be elementary
requires so much detective work, shell script editing and root
access too! If a simpler procedure exists, it's certainly well
hidden. Talk about user friendly. Sheesh!

Thanks for your help.

Jeroen Belleman

[toc] | [prev] | [next] | [standalone]


#1501

FromTim Watts <tw@dionic.net>
Date2011-06-28 17:11 +0100
Message-ID<83bpd8-ppn.ln1@squidward.dionic.net>
In reply to#1496
Jeroen Belleman wrote:

> Feranija wrote:
>> On 24.06.2011 16:54, Aleksandar_B wrote:
>>>
>>>
>>> On 2011-06-23 14:04, Rob van der Putten wrote:
>>>> This is actually a libc thing.
>>>> man locale.
>>>> Switching from a US to a GB locale will probably get you what you
>>>> want.
>>>
>>> In regards to TB, you can create a script with:
>>>
>>> #!/bin/sh
>>> export LC_TIME=en_DK.utf8
>>> /usr/bin/thunderbird $*
>>>
>>> and use it to start TB.
>> 
>> 
>> Or just have the variable in ~/.bashrc. No script necessary. Works well.
> 
> But the Thunderbird process is no child of any of my open shells,
> so I don't see how this would work. I suppose I could put it in
> some window manager startup script, or some such.

/etc/profile.d/...

Cheers,

Tim
-- 
Tim Watts

[toc] | [prev] | [next] | [standalone]


#1507

FromJeroen <jeroen@nospam.please>
Date2011-06-28 22:55 +0200
Message-ID<iudf9b$v8m$1@speranza.aioe.org>
In reply to#1501
On 06/28/2011 06:11 PM, Tim Watts wrote:
> Jeroen Belleman wrote:
> 
>> Feranija wrote:
>>> On 24.06.2011 16:54, Aleksandar_B wrote:
>>>>
>>>>
>>>> On 2011-06-23 14:04, Rob van der Putten wrote:
>>>>> This is actually a libc thing.
>>>>> man locale.
>>>>> Switching from a US to a GB locale will probably get you what you
>>>>> want.
>>>>
>>>> In regards to TB, you can create a script with:
>>>>
>>>> #!/bin/sh
>>>> export LC_TIME=en_DK.utf8
>>>> /usr/bin/thunderbird $*
>>>>
>>>> and use it to start TB.
>>>
>>>
>>> Or just have the variable in ~/.bashrc. No script necessary. Works well.
>>
>> But the Thunderbird process is no child of any of my open shells,
>> so I don't see how this would work. I suppose I could put it in
>> some window manager startup script, or some such.
> 
> /etc/profile.d/...
> 
> Cheers,
> 
> Tim

Aah, right! Elementary :-(.

But yes, that should also work. It's still crazily abstruse.

Jeroen Belleman

[toc] | [prev] | [standalone]


Back to top | Article view | comp.os.linux.misc


csiph-web