zsh-workers
 help / color / mirror / code / Atom feed
From: Mark Borges <mdb@cdc.noaa.gov>
To: hzoli@cs.elte.hu
Cc: ZSH mailing list <zsh-workers@math.gatech.edu>
Subject: Re: offset calendar days
Date: Fri, 29 Sep 1995 23:06:40 -0600	[thread overview]
Message-ID: <9509300506.AA13575@charney.cdc.noaa.gov> (raw)
In-Reply-To: <9509292153.AA15311@turan.elte.hu>

>> 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-


       reply	other threads:[~1995-09-30  5:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <9509292108.AA02931@revelle.cdc.noaa.gov>
     [not found] ` <9509292153.AA15311@turan.elte.hu>
1995-09-30  5:06   ` Mark Borges [this message]
1995-09-30  5:17     ` Zefram
1995-09-30 15:41       ` Mark Borges

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9509300506.AA13575@charney.cdc.noaa.gov \
    --to=mdb@cdc.noaa.gov \
    --cc=hzoli@cs.elte.hu \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).