From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15292 invoked from network); 2 Jul 1998 15:50:29 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 2 Jul 1998 15:50:29 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id LAA27277; Thu, 2 Jul 1998 11:36:14 -0400 (EDT) Resent-Date: Thu, 2 Jul 1998 11:36:14 -0400 (EDT) From: "Bart Schaefer" Message-Id: <980702083707.ZM17926@candle.brasslantern.com> Date: Thu, 2 Jul 1998 08:37:07 -0700 In-Reply-To: Comments: In reply to Chan Sean "Zsh 2.6 and Y2K status" (Jul 2, 3:58pm) References: X-Mailer: Z-Mail (4.0b.820 20aug96) To: Chan Sean , "'zsh-workers@math.gatech.edu '" Subject: Re: Zsh 2.6 and Y2K status MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"Oy-PL2.0.7g6.jZwcr"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/4197 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Jul 2, 3:58pm, Chan Sean wrote: } Subject: Zsh 2.6 and Y2K status } } On behalf of my client WMC Resources Ltd. I need to know if ZSH is Y2K } compliant. May I know where I can find such information?? You can confirm the following by looking at the source code yourself if necessary; there's no other definitive reference: Zsh uses UNIX/POSIX time_t, timeval, and tm data types for internal date manipulations. These types either do not store year values at all (for example, time_t is measured in seconds since midnight, Jan 1, 1970) or store them as integer types and NOT as pairs of digits. Thus there can be no overflows at year 2000. On some unix systems, time_t is a 32-bit value and will overflow during the year 2038, but more modern systems use a 64-bit time_t. The only input and output of dates that zsh performs is optional history time-stamping. This is performed using time_t values converted to long integers, which are either 32 or 64 bits, see above. Note, however, that zsh does provide facilities for formatted date output, so it's possible that scripts written for zsh might employ 2-digit years. Shell scripts should always be considered separate programs and therefore evaluated individually. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com