From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27656 invoked from network); 10 Oct 2003 02:15:26 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 10 Oct 2003 02:15:26 -0000 Received: (qmail 2609 invoked by alias); 10 Oct 2003 02:15:14 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6681 Received: (qmail 2580 invoked from network); 10 Oct 2003 02:15:13 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 10 Oct 2003 02:15:13 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.3.58.249] by sunsite.dk (MessageWall 1.0.8) with SMTP; 10 Oct 2003 2:15:13 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id h9A2FBG11253 for zsh-users@sunsite.dk; Thu, 9 Oct 2003 19:15:11 -0700 From: Bart Schaefer Message-Id: <1031010021511.ZM11252@candle.brasslantern.com> Date: Fri, 10 Oct 2003 02:15:11 +0000 In-Reply-To: <22603.1065722644@csr.com> Comments: In reply to Peter Stephenson "Re: Useful zsh/datetime things" (Oct 9, 7:04pm) References: <22603.1065722644@csr.com> <1031009172754.ZM10491@candle.brasslantern.com> <20031009181245.GA22161@globnix.org> In-Reply-To: <20031009181245.GA22161@globnix.org> Comments: In reply to Phil Pennock "Re: Useful zsh/datetime things" (Oct 9, 6:12pm) X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-users@sunsite.dk Subject: Re: Useful zsh/datetime things MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Oct 9, 7:04pm, Peter Stephenson wrote: } } Bart Schaefer wrote: } > function rfcdate { } > # Like GNU "date -R" } > strftime "%a, %e %b %Y %H:%M:%S %z" $EPOCHSECONDS } > } } } Sure the %z shouldn't be %Z? Solaris doesn't like %z. On Oct 9, 6:12pm, Phil Pennock wrote: } } %z is a common extension to strftime(), which gives the off-set } numerically. Which is how it's supposed to be formatted for RFC{2,}822 et al., and is how `date -R` does it. Is there a POSIX way to get the zone hours offset from UT?