Re: [dev] Re: [wmii]clarifications on python script usage

From: Kris Maglione <maglione.k_AT_gmail.com>
Date: Sun, 30 May 2010 17:17:53 -0400

On Sun, May 30, 2010 at 11:01:50PM +0200, pascal wrote:
>Le Sun, 30 May 2010 16:12:08 -0400
>Kris Maglione <maglione.k_AT_gmail.com> a écrit:
>> Why would you want any kind of locale-specific time? Here's what
>> I do:
>>
>> @defmonitor(colors=wmii['focuscolors'], name='time')
>> def s9time(self):
>> return time.strftime('%H:%M:%S %Z')
>> @defmonitor(interval=60)
>> def s9date(self):
>> return time.strftime('%a, %d %b')
>>
>It's a detail but I prefer to read for example "Dim, 30 Mai"
>instead of "Sun, 30 May".

Interesting. I don't especially care what language it's in, so
long as I can read it.

-- 
Kris Maglione
If debugging is the process of removing bugs, then programming must be
the process of putting them in.
	--Edsger W. Dijkstra
Received on Sun May 30 2010 - 21:17:53 UTC

This archive was generated by hypermail 2.2.0 : Sun May 30 2010 - 21:24:02 UTC