Subject: standards/18257: POSIX.2-1992: ps(1)'s TIME column has the wrong format
To: None <gnats-bugs@gnats.netbsd.org>
From: Ben Harris <bjh21@netbsd.org>
List: netbsd-bugs
Date: 09/10/2002 19:21:59
>Number:         18257
>Category:       standards
>Synopsis:       POSIX.2-1992: ps(1)'s TIME column has the wrong format
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    standards-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 10 11:23:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ben Harris
>Release:        1.5.2
>Organization:
>Environment:
System: NetBSD viking 1.5.2 NetBSD 1.5.2 (VIKING) #9: Sat May 11 12:39:15 BST 2002 bjh21@viking:/usr/src/sys/arch/macppc/compile/VIKING macppc

>Description:
The "TIME" column in ps's output is specified by IEEE Std 1003.2-1992, and
by IEEE Std 1003.1-2001 as containing:

# [dd-]hh:mm:ss
#
# where dd shall represent the number of days, hh the number of hours, mm
# the number of minutes, and ss the number of seconds. The dd field shall be
# a decimal integer. The hh, mm, and ss fields shall be two-digit decimal
# integers padded on the left with zeros.

<http://www.opengroup.org/onlinepubs/007904975/utilities/ps.html>

On NetBSD, though, the format appears to be hh:mm.ss, with hh not being
fixed-width

>How-To-Repeat:
$ ps -o time
      TIME
   0:00.16
   0:00.01
8590:30.81

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: