Subject: bin/31436: w in 24h format
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <zafer@gmx.org>
List: netbsd-bugs
Date: 10/01/2005 07:09:00
>Number:         31436
>Category:       bin
>Synopsis:       w in 24h format
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 01 07:09:00 +0000 2005
>Originator:     Zafer Aydogan
>Release:        3.99.9
>Organization:
>Environment:
i386
>Description:
This is a feature request:

I'd like to have the possibility to see the time in 24h Format, when using the command "w". I'm living in a country where AM and PM is not used.
It would be great to have an Option to set these.

$ w
10:36PM  up 181 days, 10:54, 1 user, load averages: 0.07, 0.10, 0.08
USER    TTY FROM                           LOGIN@  IDLE WHAT
zafer    p0 wh30221.techfak.uni-kiel.de 10:22PM     0 w
zafer@mia:~ $

I'd prefer to see the Login time 10:22PM as 22:22.

Z.
>How-To-Repeat:
w
>Fix:
I've written a patch that provides 24h format, when invoked with 
option -H.
The current time in the header line (uptime), aswell as the the login time is in 24h format when invoked with -H

$ w -H

09:00:42  up 181 days, 21:18, 1 user, load averages: 0.13, 0.12, 0.08
USER     TTY     FROM                           LOGIN@  IDLE WHAT
zafer    ttyp2   p649d9d2b.dip0.t-ipconnect.de  08:23     0 screen

I think the Option is fine, aslong a solution using localization is found.