From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jay Belanger Newsgroups: gmane.emacs.help Subject: Re: Emacs Calc: converting FROM Unix Time, unrecognized time zone Date: Thu, 03 May 2007 12:27:37 -0500 Message-ID: <87k5vpizqu.fsf@gmail.com> References: <1178178488.621197.214660@c35g2000hsg.googlegroups.com> Reply-To: jay.p.belanger@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1178214160 28548 80.91.229.12 (3 May 2007 17:42:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 3 May 2007 17:42:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 03 19:42:38 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HjfJw-0007UM-Fx for geh-help-gnu-emacs@m.gmane.org; Thu, 03 May 2007 19:42:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HjfQT-0000dH-SH for geh-help-gnu-emacs@m.gmane.org; Thu, 03 May 2007 13:49:10 -0400 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:hEaCbgkyOQF3dKuGjVo2ANzcIgw= Original-Lines: 35 Original-NNTP-Posting-Host: 150.243.64.25 Original-X-Trace: news.more.net 1178213257 150.243.64.25 (Thu, 03 May 2007 12:27:37 CDT) Original-NNTP-Posting-Date: Thu, 03 May 2007 12:27:37 CDT Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!204.71.34.3!newsfeed.cwix.com!news.binc.net!news-chi-1.sprintlink.net!newshub.more.net!news.more.net!53ab2750!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:148009 X-Mailman-Approved-At: Thu, 03 May 2007 13:44:00 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:43612 Archived-At: Alan writes: > I am trying to use calc to convert a vector of unix times in a tide > table. When using "t-U" to convert unix time, the following error is > received: > > Unrecognized time zone name: error > > I changed the time zone (Gentoo GNU/Linux) by copying the posix GMT+10 > zoneinfo file over /etc/localtime. This seemed to make a difference > the first time---my timezone name is a little obscure, or so I > reasoned: "ChST" (I am on Saipan, N. Mariana Islands). Yes; the Calc manual (under "Time Zones") has a list of time zones it recognizes, and "ChST" is not one of them. With no other information to go on, Calc will look at the output of the "date" function to determine the time zone. You could bypass the "date" function and tell Calc the timezone by setting Calc's `TimeZone' variable. > Also, I am uncertain how to use this command to convert FROM unix time > to something else. `t U' will switch between unix time and date forms. To convert a vector of unix times into date forms, map 't U" across the vector: `V M t U' > Probably the time zone error is peripheral to my main problem, which > is just being able to convert a vector of a few thousand items by > grabbing them from a file into calc. If the items are already grabbed, then it looks like `V M t U' is what you want. Jay