From: jay.p.belanger@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs Calc: converting FROM Unix Time, unrecognized time zone
Date: 7 May 2007 14:19:59 -0700 [thread overview]
Message-ID: <1178572799.116605.282980@y5g2000hsa.googlegroups.com> (raw)
In-Reply-To: <1178343514.803260.60100@y80g2000hsf.googlegroups.com>
On May 5, 12:38 am, Alan <lngn...@gmail.com> wrote:
> On May 5, 1:31 am, Jay Belanger <jay.p.belan...@gmail.com> wrote:
> > 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?
Are you using `t P 9' to get HMS form, then? `t P 4' should just get
you HH, not HH:mm.
I don't think you can get HH.xx directly, but you could `t P 9' to get
hms form, and then
enter `M-x calc-from-hms' (`x', then `from-hms').
> As far as I can find in the calc manual, I am told to set the
> variable [var-TimeZone], 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.
I suppose there should be more time zones added to `math-tzone-
names'. You shouldn't edit calc-forms.el, but rather copy the value
of `math-tzone-names' from that file, and the appropriate values. So
it should look something like
(setq math-tzone-names
'(("UTC" 0 0)
...
( "YGT" 9 "YST" "YDT" ) ( "YST" 9 0 ) ( "YDT" 9 -1 ) ; Yukon
("ChST" 10 0)
next prev parent reply other threads:[~2007-05-07 21:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-03 7:48 Emacs Calc: converting FROM Unix Time, unrecognized time zone Alan
2007-05-03 17:27 ` Jay Belanger
2007-05-04 14:30 ` Alan
2007-05-04 15:31 ` Jay Belanger
2007-05-05 5:38 ` Alan
2007-05-07 21:19 ` jay.p.belanger [this message]
2007-05-07 21:25 ` jay.p.belanger
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1178572799.116605.282980@y5g2000hsa.googlegroups.com \
--to=jay.p.belanger@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).