From owner-freebsd-bugs Tue Sep 4 15: 0: 5 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BA9A537B406 for ; Tue, 4 Sep 2001 15:00:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f84M01k64138; Tue, 4 Sep 2001 15:00:01 -0700 (PDT) (envelope-from gnats) Date: Tue, 4 Sep 2001 15:00:01 -0700 (PDT) Message-Id: <200109042200.f84M01k64138@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Garrett Wollman Subject: bin/30321: strftime(3) '%s' format does not work properly Reply-To: Garrett Wollman Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/30321; it has been noted by GNATS. From: Garrett Wollman 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) < 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