[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs Calc: converting FROM Unix Time, unrecognized time zone
From: |
Alan |
Subject: |
Re: Emacs Calc: converting FROM Unix Time, unrecognized time zone |
Date: |
4 May 2007 22:38:34 -0700 |
User-agent: |
G2/1.0 |
On May 5, 1:31 am, Jay Belanger <jay.p.belan...@gmail.com> 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
- Emacs Calc: converting FROM Unix Time, unrecognized time zone, Alan, 2007/05/03
- Re: Emacs Calc: converting FROM Unix Time, unrecognized time zone, Jay Belanger, 2007/05/03
- Re: Emacs Calc: converting FROM Unix Time, unrecognized time zone, Alan, 2007/05/04
- Re: Emacs Calc: converting FROM Unix Time, unrecognized time zone, Jay Belanger, 2007/05/04
- Re: Emacs Calc: converting FROM Unix Time, unrecognized time zone,
Alan <=
- Re: Emacs Calc: converting FROM Unix Time, unrecognized time zone, jay . p . belanger, 2007/05/07
- Re: Emacs Calc: converting FROM Unix Time, unrecognized time zone, jay . p . belanger, 2007/05/07