Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Oct 1998 12:22:32 -0700 (PDT)
From:      patl@phoenix.volant.org
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   misc/8346: Strftime can't generate ISO-8601 timezone offsets
Message-ID:  <199810161922.MAA20653@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         8346
>Category:       misc
>Synopsis:       Strftime can't generate ISO-8601 timezone offsets
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 16 12:30:02 PDT 1998
>Last-Modified:
>Originator:     PM Lashley
>Organization:
>Release:        2.2.7R
>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.
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810161922.MAA20653>