From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: gebser@speakeasy.net Newsgroups: gmane.emacs.help Subject: current-time-zone Date: Fri, 19 Dec 2003 18:59:31 -0500 (EST) Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: Reply-To: gebser@speakeasy.net NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1071878810 3449 80.91.224.253 (20 Dec 2003 00:06:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 20 Dec 2003 00:06:50 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 20 01:06:48 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AXUdq-0007fJ-00 for ; Sat, 20 Dec 2003 01:06:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AXVYc-000336-7S for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Dec 2003 20:05:26 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AXVXm-0002z7-Ps for help-gnu-emacs@gnu.org; Fri, 19 Dec 2003 20:04:34 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AXVVa-0002Gu-NV for help-gnu-emacs@gnu.org; Fri, 19 Dec 2003 20:02:50 -0500 Original-Received: from [216.254.0.202] (helo=mail2.speakeasy.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AXVUO-0001SR-4N for help-gnu-emacs@gnu.org; Fri, 19 Dec 2003 20:01:04 -0500 Original-Received: (qmail 4847 invoked from network); 19 Dec 2003 23:59:32 -0000 Original-Received: from dsl093-011-017.cle1.dsl.speakeasy.net (HELO heidegger.mousecar.net) ([66.93.11.17]) (envelope-sender ) by mail2.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 19 Dec 2003 23:59:32 -0000 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15470 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15470 Should "M-x current-time-zone" return something? Using emacs v.20.7.1 all get in the minibuffer is "[No match]". However, "C-h f current-time-zone" shows: current-time-zone is a built-in function. Return the offset and name for the local time zone. This returns a list of the form (OFFSET NAME). OFFSET is an integer number of seconds ahead of UTC (east of Greenwich). A negative value means west of Greenwich. NAME is a string giving the name of the time zone. If an argument is given, it specifies when the time zone offset is determined instead of using the current time. The argument should have the form: (HIGH . LOW) or the form: (HIGH LOW . IGNORED). Thus, you can use times obtained from `current-time' and from `file-attributes'. Some operating systems cannot provide all this information to Emacs; in this case, `current-time-zone' returns a list containing nil for the data it can't find. (current-time-zone &optional SPECIFIED-TIME) I'm thinking that, for some reason, this function isn't getting the info it needs from the system... which is strange because I know that $TZ is set. Bug? Workaround? What? tnx, ken