From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Newsgroups: gmane.emacs.help Subject: Re: Emacs Calc: converting FROM Unix Time, unrecognized time zone Date: 4 May 2007 22:38:34 -0700 Organization: http://groups.google.com Message-ID: <1178343514.803260.60100@y80g2000hsf.googlegroups.com> References: <1178178488.621197.214660@c35g2000hsg.googlegroups.com> <87k5vpizqu.fsf@gmail.com> <1178289021.372483.28440@e65g2000hsc.googlegroups.com> <87vef8zju3.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1178346819 14987 80.91.229.12 (5 May 2007 06:33:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 5 May 2007 06:33:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 05 08:33:37 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 1HkDpo-0005cS-81 for geh-help-gnu-emacs@m.gmane.org; Sat, 05 May 2007 08:33:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HkDwW-00047f-EW for geh-help-gnu-emacs@m.gmane.org; Sat, 05 May 2007 02:40:32 -0400 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!y80g2000hsf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-NNTP-Posting-Host: 202.88.85.104 Original-X-Trace: posting.google.com 1178343515 17841 127.0.0.1 (5 May 2007 05:38:35 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 5 May 2007 05:38:35 +0000 (UTC) In-Reply-To: <87vef8zju3.fsf@gmail.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: y80g2000hsf.googlegroups.com; posting-host=202.88.85.104; posting-account=c97n8Q0AAABI6G3JECYGx5zPBxKrdqWx Original-Xref: shelby.stanford.edu gnu.emacs.help:148114 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:43713 Archived-At: On May 5, 1:31 am, Jay Belanger wrote: > > 't P' (`calc-date-part') will get it for you. > Enter the date with algebraic notation: > <2007-05-05 14:30> > then, to get the hours, either `C-u 4 t P' or > `t P', and then type `4' at the prompt (which will also tell you which > number to type to get the date parts: `1' for year,..., `4' for hours). This is very helpful. It gives me HH:mm. Is it possible to extract HH.xx (hours and decimals) directly? > It's not documented as an Emacs lisp variable (although I guess it > should be), but it is documented as a Calc variable. It is in the > variable index of the Calc manual under "TimeZone". As a Calc > variable, it is "TimeZone", but to deal with it directly from elisp, > you need to use `var-TimeZone'. (In general, the Calc variable `foo' > corresponds to the lisp variable `var-foo'.) As far as I can find in the calc manual, I am told to set the variable, but I have not been able to find out what is the format of the variable? For now I set GMT-10 by "s T', like this: "GMT-10". If I were to try to set ChST, the time zone more generally used on my Island, would I have to edit also "calc-forms.el? And what would I need to enter? There is no ChDT. Your replies have been of inestimable help. Thank you, Alan