From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Seweryn Kokot Newsgroups: gmane.emacs.help Subject: Re: problem with time-stamps on GNU/Linux and Windows Date: Thu, 04 Sep 2008 20:37:26 +0200 Message-ID: <87hc8vpxjt.fsf@poczta.po.opole.pl> References: <48C01A64.9060705@mousecar.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220552950 17999 80.91.229.12 (4 Sep 2008 18:29:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Sep 2008 18:29:10 +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 Sep 04 20:30:05 2008 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 1KbJab-0007sy-F6 for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Sep 2008 20:29:53 +0200 Original-Received: from localhost ([127.0.0.1]:33515 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbJZb-0007Wn-JF for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Sep 2008 14:28:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbJZI-0007W8-8H for help-gnu-emacs@gnu.org; Thu, 04 Sep 2008 14:28:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbJZH-0007Vu-PK for help-gnu-emacs@gnu.org; Thu, 04 Sep 2008 14:28:31 -0400 Original-Received: from [199.232.76.173] (port=39488 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbJZH-0007Vr-H3 for help-gnu-emacs@gnu.org; Thu, 04 Sep 2008 14:28:31 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:41175 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KbJZG-0008VQ-W4 for help-gnu-emacs@gnu.org; Thu, 04 Sep 2008 14:28:31 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KbJZB-0005mH-Do for help-gnu-emacs@gnu.org; Thu, 04 Sep 2008 18:28:25 +0000 Original-Received: from nat-warynskiego.po.opole.pl ([217.173.199.132]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Sep 2008 18:28:25 +0000 Original-Received: from s.kokot by nat-warynskiego.po.opole.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Sep 2008 18:28:25 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 50 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: nat-warynskiego.po.opole.pl X-PGP-FP: BF2E 7101 B6C4 CE71 527E 1A06 9B17 0C43 20EC 5AC1 X-PGP: 20EC5AC1 X-Operating-System: Debian GNU/Linux X-Homepage: http://www.skokot.po.opole.pl User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:3luva+dd4F8/cEEG/ta/hhqGweY= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:57276 Archived-At: Eli Zaretskii writes: >> >> Could you explain to me why I get slightly different time-stamps under >> >> Windows and Linux? >> > >> > These localized weekday names come from the system. No amount of >> > configuration within Emacs will make them the same in Windows as they >> > are in GNU/Linux. >> >> I'm not quite understanding your problem. And I don't often use >> Windows. But I would think that emacs should fetch the same couple >> words (i.e., two bytes) representing the time regardless of which OS it >> is running on. > > The problem is not the time, but the abbreviated name of the second > day of the week ("Tue" in English). These abbreviated names come from > a call to a library function, which are different on Windows and on > GNU/Linux, so they return different strings. > >> But I'm guessing that the problem isn't the accuracy of >> the time, but rather the human-readable output derived from those words. > > Emacs does not derive the names from those words, it simply returns > whatever the library functions hand it. Well, (current-time-string) function returns the same strings on both systems, but in English, for example: "Thu Sep 4 20:16:51 2008". BTW why this function gives abbreviations in English and not the locale's ones? Whereas this function (defun my-insert-time-stamp () (interactive) (insert (format-time-string "%a %b %d %02H:%02M:%02S %Y"))) on Windows gives (my-insert-time-stamp) Cz wrz 04 20:13:20 2008 and on GNU/Linux: czw wrz 04 20:16:29 2008 I raise this problem because org-mode has some problems parsing these inconsistent abbreviations. Is it possible to get the result of (my-insert-time-stamp) in English like in the case of the (current-time-string) function? regards, Seweryn