Subject: Re: w with 24h format
To: Hubert Feyrer <firstname.lastname@example.org>
From: Steven M. Bellovin <email@example.com>
Date: 09/30/2005 20:23:06
In message <Pine.LNX.firstname.lastname@example.org>, Hubert Feyrer
>On Fri, 30 Sep 2005, Rui Paulo wrote:
>> | I'd prefer to see the Login time 10:22PM as 22:22.
>> Maybe this could be done locale-specific ?
>> I agree with the idea of sending a PR.
>Including patch. :)
It looked to be a very simple change; the time-printing is isolated to
a separate file pr_time.c. My original thought was an enviornment
variable W_TIMEFORMAT that would hold a strftime string, but in fact
there are three separate cases in the code.
--Steven M. Bellovin, http://www.cs.columbia.edu/~smb