Re: 64bit time_t

John Levine <> Sun, 22 June 2008 01:25 UTC

Return-Path: <>
Received: from [] (localhost []) by (Postfix) with ESMTP id 75F9C3A67C0; Sat, 21 Jun 2008 18:25:21 -0700 (PDT)
Received: from localhost (localhost []) by (Postfix) with ESMTP id E7DCE3A67C0 for <>; Sat, 21 Jun 2008 18:25:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -8.299
X-Spam-Status: No, score=-8.299 tagged_above=-999 required=5 tests=[BAYES_50=0.001, RCVD_IN_BSP_TRUSTED=-4.3, RCVD_IN_DNSWL_MED=-4]
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id qur4gsImEk6g for <>; Sat, 21 Jun 2008 18:25:19 -0700 (PDT)
Received: from ( []) by (Postfix) with ESMTP id 921963A679F for <>; Sat, 21 Jun 2008 18:25:19 -0700 (PDT)
Received: (qmail 53608 invoked from network); 22 Jun 2008 01:20:29 -0000
Received: from ( by with QMQP; 22 Jun 2008 01:20:29 -0000
Date: 22 Jun 2008 01:25:23 -0000
Message-ID: <>
From: John Levine <>
Subject: Re: 64bit time_t
In-Reply-To: <BLU120-W240BCEF0CF3ACCC84DFBF3CAA40@phx.gbl>
X-Headerized: yes
Mime-Version: 1.0
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: IETF Discussion <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

>Make time_t 64 bits wide. ...

>What do you think?

The basic definition of time_t is in the ANSI/ISO C standards, which
say it's an arithmetic type but leave the details to the
implementation.  POSIX further defines it to be an integer number of
seconds since the 1970 epoch, with the implementation deciding how big
an integer it should be.

We all know that signed 32 bit versions of time_t will overflow in
2038, so modern POSIX systems are moving toward 64 bit versions.

If you want to update or change the definition of time_t, you need to
talk to WG14 which maintains the C standard, or PASC which maintains
the POSIX standards.  Neither of these groups is related to the IETF.

John Levine,, Primary Perpetrator of "The Internet for Dummies",
Information Superhighwayman wanna-be,, ex-Mayor
"More Wiener schnitzel, please", said Tom, revealingly.
IETF mailing list