From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gatech.edu (gatech.edu [130.207.244.244]) by werple.net.au (8.7/8.7) with SMTP id PAA17749 for ; Sat, 30 Sep 1995 15:12:43 +1000 (EST) Received: from math (math.skiles.gatech.edu) by gatech.edu with SMTP id AA20133 (5.65c/Gatech-10.0-IDA for ); Sat, 30 Sep 1995 01:11:20 -0400 Received: by math (5.x/SMI-SVR4) id AA03738; Sat, 30 Sep 1995 01:04:05 -0400 Resent-Date: Fri, 29 Sep 1995 23:06:40 -0600 Old-Return-Path: Date: Fri, 29 Sep 1995 23:06:40 -0600 Message-Id: <9509300506.AA13575@charney.cdc.noaa.gov> From: Mark Borges To: hzoli@cs.elte.hu Cc: ZSH mailing list Subject: Re: offset calendar days In-Reply-To: <9509292153.AA15311@turan.elte.hu> References: <9509292108.AA02931@revelle.cdc.noaa.gov> <9509292153.AA15311@turan.elte.hu> Organization: CIRES, University of Colorado X-Attribution: mb Resent-Message-Id: <"Pb2xT3.0.Kw.4_CRm"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/409 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu >> Zoltan Hidvegi(ZH) wrote on Fri, 29 Sep 1995 22:53:09 +0100 (MET): ZH> As I know, if there is a +/- number in the TZ, it is taken as an ZH> offset to GMT and the leading part of the variable is ignored. ZH> E.g. FOO-1 is the same as GMT-1. Yes, you are exactly right. Thanks! Unfortunately, in playing with this I think I discoverd a small bug (or at least ksh incompatability) in zsh: ------------------------------------------------------------------------------ charney$ ksh $ TZ=GMT-$((18+$((${2:-1}-1))*24)) date +%j 273 $ ^D charney$ echo $ZSH_VERSION 2.6-beta10-hzoli10.2 charney$ TZ=GMT-$((18+$((${2:-1}-1))*24)) date +%j zsh: ')' expected ------------------------------------------------------------------------------ If not a bug, is there an alternate syntax I can use in zsh? -mb-