Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Sep 2001 15:00:01 -0700 (PDT)
From:      Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To:        freebsd-bugs@FreeBSD.org
Subject:   bin/30321: strftime(3) '%s' format does not work properly
Message-ID:  <200109042200.f84M01k64138@freefall.freebsd.org>

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

The following reply was made to PR bin/30321; it has been noted by GNATS.

From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To: archie@packetdesign.com
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: bin/30321: strftime(3) '%s' format does not work properly
Date: Tue, 4 Sep 2001 17:52:18 -0400 (EDT)

 <<On Tue, 4 Sep 2001 14:01:02 -0700 (PDT), Archie Cobbs <archie@packetdesign.com> said:
 
 > 	When it does this conversion, it uses the currently set
 > 	system time zone instead of using the time zone from the
 > 	'struct tm' argument. Therefore, if the two timezones are
 > 	different, incorrect results are computed.
 
 This behavior is correct.  In the general case, as codified in the ISO
 C standard, `struct tm' does not contain time zone information.  ISO C
 functions such as strftime() are specified to use the system's time
 zone.
 
 Having said that, `%s' is not specified in either POSIX or ISO C, so
 we are free to make it mean anything we want.
 
 -GAWollman
 

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?200109042200.f84M01k64138>