From wn23590@sgh.waw.pl  Mon Oct  2 00:52:39 2000
Return-Path: <wn23590@sgh.waw.pl>
Received: from hermes.sgh.waw.pl (hermes.sgh.waw.pl [148.81.200.10])
	by hub.freebsd.org (Postfix) with ESMTP id 3598637B66C
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  2 Oct 2000 00:52:34 -0700 (PDT)
Received: from akson.sgh.waw.pl (wn23590@akson.sgh.waw.pl [194.145.96.12])
	by hermes.sgh.waw.pl (8.8.8/8.8.8/rchk1.20+bspm1.13) with ESMTP id JAA01196
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 2 Oct 2000 09:51:08 +0200 (MET DST)
Received: (from wn23590@localhost)
	by akson.sgh.waw.pl (8.8.8+Sun/8.8.8) id JAA28122
	for FreeBSD-gnats-submit@freebsd.org; Mon, 2 Oct 2000 09:52:20 +0200 (MET DST)
Message-Id: <200010020752.JAA28122@akson.sgh.waw.pl>
Date: Mon, 2 Oct 2000 09:52:20 +0200 (MET DST)
From: Wiktor NIESIOBDZKI <wn23590@sgh.waw.pl>
To: undisclosed-recipients:;
Subject: The time_t variable is only 4 bytes long

>Number:         21692
>Category:       kern
>Synopsis:       The time_t variable is only 4 bytes long
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 02 01:00:01 PDT 2000
>Closed-Date:    Mon Oct 2 12:16:14 PDT 2000
>Last-Modified:  Mon Oct 02 12:18:33 PDT 2000
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:

The time_t variable is only 4 bytes long, so for big values of it, strange behaviour can be expected

>How-To-Repeat:

root@patelnia:~# date
Sat Sep 30 11:35:55 CEST 2000
root@patelnia:~# date -r 2108591999
Sun Oct 26 01:59:59 CEST 2036
root@patelnia:~# date -r 2108592000
Sun Oct 26 01:00:00 CET 2036
Why the timezone has changed? 

root@patelnia:~# date -r 2147483647
Tue Jan 19 04:14:07 CET 2038
root@patelnia:~# date -r 2147483648
Fri Dec 13 22:09:52 WMT 1901
Do we need negative values of time_t?

>Fix:




>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: peter 
Responsible-Changed-When: Mon Oct 2 12:02:43 PDT 2000 
Responsible-Changed-Why:  
misfiled PR 

http://www.freebsd.org/cgi/query-pr.cgi?pr=21692 
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Mon Oct 2 12:16:14 PDT 2000 
State-Changed-Why:  
1. The timezone didn't change, but Daylight savings time ends in  
the last weekend of october in the CET timezone. 

2. It is far too early to decide what to do about time  
representation past 2038 at this time. 

3. If you have unique needed for time representation, you will need 
unique methods. 

4. A good guess is that we'll adopt a 64bit time_t sometime in the 
next five years (a 30 year margin seems likely). 


http://www.freebsd.org/cgi/query-pr.cgi?pr=21692 
>Unformatted:
 FreeBSD 4.1.1
 
