From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20058 invoked from network); 30 Mar 2022 00:13:32 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 30 Mar 2022 00:13:32 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1648599212; b=XKUi+BWYjJ2IAxTRz3pBIfs7Xn9CSaWKYaZHC+5HUeSvCSNbzW881mUa2c5nTs68z0Tfobk4Kt xBx7KiY2h1z7itZaRIY40K+WagsBQPHCn3Np/sc6F/NX6kj2oWp2l5pEk3mBIqG2arZ+cMez/Y bwCo1VZ9J+K2kUMxv1371rJ2Wv5N0Il9I79MqgEz/ztB0VqF/dyE+DH5LFyF/MeQNA+cZDF9ys 4Gqx9icJSvF9G8rFJr1GmZaTv44EYdfBrH7sN+7CCEyvndMYfTeHFoEufgsiSpuY85YSZTpiCR IM84M+MMqRDoxsQ2cn+AIZkoF3a45i14DrT7zxtu4YxzQw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (pug.qqx.org) smtp.remote-ip=50.116.43.67; dkim=pass header.d=schrab.com header.s=mail header.a=rsa-sha256; dmarc=none header.from=schrab.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1648599212; bh=NtmFd+dUt6uTsysAQizbrjMo3TvWgInk6NwuwiPudEY=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:DKIM-Signature:DKIM-Signature; b=GxUwPulbKu69n3NRZBDkW6d2b/TJ1zgfnpnI0nB8YbpgRQd1FTC3vx07AXyLF78lWaSOnYxMtq Cq0Hxn2FIaxqjbFn8h6lJ+dP/FEXqps+jA+ju+g5jx96ZuJKk7BdiD0zR8Mdn6sD79Xz9XnUSd leM/x25Kqdk/d1N0C1SlfxMianjM3FKmjCQmFo+V30QCQAwbaRd8HD7ddGZItAf7bYk12djs3Q ycItT68oS6GkFnIuRBcN0l9cJSSyPhGR+gU/pa79OLT7TRAyhXGdUAqA04+O6UrphYQGOFQxl4 e0+ET/2qOFvo96Uho7ybIS+7/S2NkctCU3ibPulZb+Rwsw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=LQ3Pmw5U1BZFNZrs0xC+EUuO7h7rBftGSr3eXBAz1is=; b=lFzm5YcmRd3fIC9FEZoMr7fUTz a5KFSPPOkN5/TcygUin9dVyNfzru6VYAy2paTDIvJmCJqL8nCgK7aJzkEervfpfMGmyslVDivX1nz jWIV5xCa5qjqVJCqxpQbFlEMWGj7AE+gk6brMhWYdGjWwSWiT9GCzjxWOMj5jUYq5Asqc/EUNy4RH D8cDrSpXwFRaeADj7Wak4fd/EUxtzpCLD2oNOPJVJx/NkpxzaWnypzctBfXzobzlKcyBEBICkzfa2 N5Lqalt17djGksaT/SHhQKPr4CbtS0UuZBp+FXfckwTn4aSWNpM5RfD80fZKS2fMLgbICW4wtpJ5Q TYqbLMIg==; Received: from authenticated user by zero.zsh.org with local id 1nZLxr-0003JX-Rp; Wed, 30 Mar 2022 00:13:31 +0000 Authentication-Results: zsh.org; iprev=pass (pug.qqx.org) smtp.remote-ip=50.116.43.67; dkim=pass header.d=schrab.com header.s=mail header.a=rsa-sha256; dmarc=none header.from=schrab.com; arc=none Received: from pug.qqx.org ([50.116.43.67]:52850) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1nZLwr-00030V-Q4; Wed, 30 Mar 2022 00:12:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=schrab.com; s=mail; t=1648599148; bh=NtmFd+dUt6uTsysAQizbrjMo3TvWgInk6NwuwiPudEY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Wa6uJlzCnBRXJ/NyuqGoX8//HuVh1HzMkB4QpzM0wXNCqlBxTQnww1bBgUy0G6WCJ N6ZcMXhDzY1f74NIeR8z6QhYGbGNdWisyndy0hgBA8s7CP1LuqL64iLPOkNDvrhzfp KjTmNpc+MVFM7HGF9+ozi6lT4EB4nSWhzm68kOYaqekfDddzcS1QP7gxsMgc3lQwTA Ele6h/4owzU3lxgAC5NzmXhEOwjncLSVRiInzuc4WuXy8HI7r7tLdjvzQAU5mUPvYb oiSV2JVCFW4UWJ5F5pkan9QwEgYNfTL/bM5koj80wKCcTtNMVWIgxrycT+R777W4AD zYm6eQ1Y+gMjQ== Received: by pug.qqx.org (Postfix, from userid 1000) id 1768C1DC10; Tue, 29 Mar 2022 20:12:28 -0400 (EDT) Date: Tue, 29 Mar 2022 20:12:28 -0400 From: Aaron Schrab To: Bart Schaefer Cc: Jordan Russell , Zsh hackers list Subject: Re: _time_zone gives me candidates other than timezones Message-ID: Mail-Followup-To: Bart Schaefer , Jordan Russell , Zsh hackers list References: <875yo3b3ka.fsf@smokey> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-Seq: 49921 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: At 16:22 -0700 29 Mar 2022, Bart Schaefer wrote: >On Thu, Mar 24, 2022 at 12:28 PM Jordan Russell > wrote: >> >> I would like _time_zone to exclude these filenames that are not >> timezones [...] >> >> If I modify it to just exclude those files that begin with a lowercase >> letter then it gives me only proper timezone names. > >That excludes the directories "posix" and "right" on my system (I have >no idea what the latter one means). Quoting from https://www.ucolick.org/~sla/leapsecs/right+gps.html: The "right" files in the tz (zoneinfo) database have a subtle difference from the POSIX standard. POSIX requires that the system clock value of time_t represent the number of non-leap seconds since 1970-01-01. This is the same as requiring POSIX seconds to be mean solar seconds of UT, not the atomic seconds that UTC has counted since 1972-01-01. The "right" zoneinfo files assert that the system clock value of time_t represent the actual number of seconds in the internationally approved broadcast time scale since 1970-01-01. As a result the value of time_t which is expected by the "right" zoneinfo files is greater than the value of time_t specified by POSIX. The difference in the values of time_t is the number of leap seconds which have been inserted into the internationally approved broadcast time scale. As of year 2011 the difference is 24 seconds. I'm a bit more puzzled about why the separate `posix` directory exists. At least for my local time zone it doesn't seem to matter if I use that or leave it out; while using the `right` one definitely makes a difference: date; TZ=right/America/New_York date; TZ=posix/America/New_York date 2022-03-29T20:07:47 EDT 2022-03-29T20:07:20 EDT 2022-03-29T20:07:47 EDT >Is everyone OK with that? While I don't think I've ever really needed to use zoneinfo entries from those directories, I'd certainly prefer they be offered for completion.