From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WK6nKRi1X2IEPQEAbAwnHQ (envelope-from ) for ; Wed, 20 Apr 2022 09:24:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gCnJKBi1X2KmBAEAG6o9tA (envelope-from ) for ; Wed, 20 Apr 2022 09:24:08 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 12F583661 for ; Wed, 20 Apr 2022 09:24:08 +0200 (CEST) Received: from localhost ([::1]:40716 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nh4h4-000579-MG for larch@yhetil.org; Wed, 20 Apr 2022 03:24:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nh4ga-00056x-Em for emacs-orgmode@gnu.org; Wed, 20 Apr 2022 03:23:36 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57686) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nh4gZ-0002W3-8j; Wed, 20 Apr 2022 03:23:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=wlthkeR7RqKQy/pkSHwXP1gTLxzu0zYrPFFZJXLgdyA=; b=O8oWjEvG/oOO utXtnrdD7NG+OPSPHU2GJw5vyWduXQs0UlL2bg0OGCmmobVVAB6ghS/uUdZbISQNisXL36gVQjUcQ RIc36XS2IqdJNQ/02s+pw4yD4FnpAEb0gNNw4z6ri0W/J/zpHm8p2HhJ7r7Ni7xaZJ0V7Pc/zYGdz BvCEx4MhiTpsNf6oP0lTfWZmbrM3l+G/jL6UZaUbskq3p2c1NteHNgsA996GXe1Q2k7aupVhiAs9q AWgaLZEZ7n9QZTqGUflrdzsQuI2BWui9FdjR6Sy+62oDTTfczvCKpv/ElpRglSm/4sEKI+4vBHWMw FKxJi/hu4YkCEV06HuWYWg==; Received: from [87.69.77.57] (port=4723 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nh4gY-0004Xj-NB; Wed, 20 Apr 2022 03:23:35 -0400 Date: Wed, 20 Apr 2022 10:23:26 +0300 Message-Id: <83fsm8tdzl.fsf@gnu.org> From: Eli Zaretskii To: Paul Eggert In-Reply-To: <6efc5d24-34a2-fd30-cd20-fe4ac3e48310@cs.ucla.edu> (message from Paul Eggert on Tue, 19 Apr 2022 15:22:29 -0700) Subject: Re: bug#54764: encode-time: make DST and TIMEZONE fields of the list argument optional ones References: <5ed963b2-3fa8-48d8-627e-bc0571d15b43@gmail.com> <149de00f-115b-5367-414f-c7700ef8966b@cs.ucla.edu> <2dd15844-01b3-0144-740c-185ec8488a81@cs.ucla.edu> <4a23f3a4-fe8f-d396-49d8-10034803be63@gmail.com> <52fb10fb-892a-f273-3be8-28793f27e204@cs.ucla.edu> <5cd820d4-ae67-43d4-9e63-c284d51ff1e4@gmail.com> <83tuapvcxs.fsf@gnu.org> <6efc5d24-34a2-fd30-cd20-fe4ac3e48310@cs.ucla.edu> X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: manikulin@gmail.com, emacs-orgmode@gnu.org, 54764@debbugs.gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650439448; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=wlthkeR7RqKQy/pkSHwXP1gTLxzu0zYrPFFZJXLgdyA=; b=OZUPF3DxpFMvJQe5TsrLh+d1iQ48e51CxRn+pid9CDxpYA5k9YxsOpa5BsF0ZiG6Dh9P1F qoRCp/wvjjRGj4iEer4A74BjiuyZZhMftDH0pCArf4VexkNMtleVVVjIPz0lbZ5JIpRDak djEYQ/iPhSzVAqzQKetkb70/hw3cmi+xjnbpZgKRsE0CtxfvL7yjPZf6dkgIAQmz6/igY6 w0halEQSvAzEL6SrTX6JPOZI/91BlzkxX3j4unI41Swk0tA8Bzk51Y35BsMy0agImej30c G470wvWjIvjcKQUYmkiIj97mRI9/XzjKvvaGwIMCBiHUHesIkvzoJ05rI8g8KA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650439448; a=rsa-sha256; cv=none; b=nvgHo/JOIhZ2XH30RtGBKq0Q+pjjg5iD2ij/2FkPcAk10KsS1J0+IIzzilqVXOUE58XmPF 6yK0ZReipVV8RoOgVM7zdDf1Hi+vVOmSAabeeawHvwsG/Xa7q2SAI3Udd1umCBTvmbvdF3 /YzIKZUCNp2A6GuPUP49tr3o2UkfvDCJH1kHV1Qy/4ijcXWNamejBTCWiBxlWV31tpSHn2 kMQw0Gw6Kz7lmzgRAsWQAB394J93axG2fvKVWLHaIPEWtIrI8SdMPVSJrHIZmYofP2K/uv IdpWLtoxQI2L50ZISLwqy8zfOvTRZnSZXhJfOzcjnikocI+mGDdIf4F01o9UCQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=O8oWjEvG; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.24 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=O8oWjEvG; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 12F583661 X-Spam-Score: -5.24 X-Migadu-Scanner: scn1.migadu.com X-TUID: JMtTM7gPdS+L > Date: Tue, 19 Apr 2022 15:22:29 -0700 > Cc: manikulin@gmail.com, emacs-orgmode@gnu.org, 54764@debbugs.gnu.org > From: Paul Eggert > > On 4/18/22 22:50, Eli Zaretskii wrote: > >> * admin/merge-gnulib (GNULIB_MODULES): Add gettime-res. > >> * lib/gettime-res.c: New file, copied from Gnulib. > >> * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. > > Is this known to support MS-Windows correctly? > > I haven't tested it on that platform, though I expect it to work since > it relies only on current_timespec and Emacs already uses that. > > I just now added some test cases to Gnulib for it; see the patch in the > first attachment. You can try these tests in your environment by running > './gnulib-tool --test gettime-res' in the Gnulib source directory. Or > you can save time by running './configure; make check' in the directory > represented by the second attachment, which is a compressed tarball > containing the output of './gnulib-tool --create-testdir --dir > test-gettime-res gettime-res'. Thanks, the test-gettime-res test says "gettime_res returned 625000 ns", which is a strange number: it doesn't fit any MS-Windows system time resolution figure I know about. Do you happen to know what does this number represent, and why it is the result of gettime-res.c when it runs on MS-Windows? AFAIK, the basic resolution of MS-Windows time stamps is 100 ns, so using the above much larger number seems to hint at some significant loss of information. If the goal of this future changeset is to make Emacs time stamps more fine-grained, it would be a shame not to have the 100-ns resolution on MS-Windows.