From nobody  Fri Oct 16 12:22:32 1998
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id MAA20653;
          Fri, 16 Oct 1998 12:22:32 -0700 (PDT)
          (envelope-from nobody)
Message-Id: <199810161922.MAA20653@hub.freebsd.org>
Date: Fri, 16 Oct 1998 12:22:32 -0700 (PDT)
From: patl@phoenix.volant.org
To: freebsd-gnats-submit@freebsd.org
Subject: Strftime can't generate ISO-8601 timezone offsets
X-Send-Pr-Version: www-1.0

>Number:         8346
>Category:       misc
>Synopsis:       Strftime can't generate ISO-8601 timezone offsets
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 16 12:30:02 PDT 1998
>Closed-Date:    Wed Jun 13 11:35:15 PDT 2001
>Last-Modified:  Wed Jun 13 11:37:24 PDT 2001
>Originator:     PM Lashley
>Release:        2.2.7R
>Organization:
>Environment:
>Description:
ISO-8601 (International Standard Date and Time Notation) lists three
possibilities for timezone indicators:  1) If no indicator is present,
an unspecified offset from UTC is assumed.  2) The letter 'Z' indicates
UTC.  3) A signed offset in hours and minutes from UTC (e.g., -08:00
for PST)

Strftime can generate the rest of the date and time in an acceptable
form; but has no format item which will emit the signed offset notation.
(Timezone name abbreviations are not acceptable under ISO-8601 due to
the high probability of confusion.)

For more info in ISO-8601, see:
	http://www.cl.cam.ac.uk/~mgk25/iso-time.html
>How-To-Repeat:

>Fix:
Add a new format specifier to emit the signed offset from UTC.  Since
'%Z' is used to get the timezone name, '%z' is a logical choice for
the offset.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: schweikh 
State-Changed-When: Wed Jun 13 11:35:15 PDT 2001 
State-Changed-Why:  
Joerg added '%z' -> -0230 as specified in ISO9899 to strftime 
in -current in Jan 2000; it is also in -stable for quite some time now. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=8346 
>Unformatted:
