From owner-freebsd-questions@FreeBSD.ORG Mon May 7 19:32:03 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2493A16A40D for ; Mon, 7 May 2007 19:32:03 +0000 (UTC) (envelope-from ersaloz@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id A8D8213C4B7 for ; Mon, 7 May 2007 19:32:02 +0000 (UTC) (envelope-from ersaloz@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so966163ugh for ; Mon, 07 May 2007 12:32:01 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:cc:subject:date:message-id:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:importance:in-reply-to:x-mimeole; b=H2D1nExQLkPP7m3aGXQSaagb+RoLjKnW2tVCC5SxHph83kFvO3hRlVWou0mbmc2XoOjKZaBKcSZTwbhgRe9prug26R3LPsyvuSGhBjNh6W62hN12/vXwkab1C1X3qN8tyRyK0ukIvHG2Pcp/+eE12/oOYDKMJ56KrMMd63Ahyvs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:cc:subject:date:message-id:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:importance:in-reply-to:x-mimeole; b=Ex7UJoA/YsbY8rAZ5NboNHct3lT9ll+G8XTmmh2w9F+mDHLZBw83JkLO0iRPqHO3cAYhuSrps2MM2zBa0hdewqA4alkXaHpjQ43T7VzrLmdQsxG5Du6D20MOwlt9BGnuseRQxDPhDVjVe7xJsp3YBjeesxe2Rk+ATfWmTc69G/k= Received: by 10.66.243.4 with SMTP id q4mr5238846ugh.1178566321315; Mon, 07 May 2007 12:32:01 -0700 (PDT) Received: from asinusaureus ( [81.35.144.87]) by mx.google.com with ESMTP id b30sm1709577ika.2007.05.07.12.31.58; Mon, 07 May 2007 12:31:59 -0700 (PDT) From: "Ernest Sales" To: Date: Mon, 7 May 2007 21:31:58 +0200 Message-ID: <000001c790de$62db09d0$2101a8c0@asinusaureus> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 Importance: Normal In-Reply-To: <44ps5dyk4y.fsf@Lowell-Desk.lan> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Cc: 'Lowell Gilbert' Subject: RE: find and timezone X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 May 2007 19:32:03 -0000 On May 6, 2007 Lowell Gilbert wrote:=20 > "Ernest Sales" writes: >=20 > > Could someone explain why this works fine: > > > > # find . -newermt "May 2 12:00:09 CET 2007" > > [...] > > # > > > > ...whereas this doesn't: > > > > # find . -newermt "May 2 12:00:09 CEST 2007" > > find: Can't parse date/time: May 2 12:00:09 CEST 2007 > > # > > > > (CET: Central European Time, ...S...: Summer) >=20 > I don't really know the details, but /usr/share/zoneinfo seems to > define CET and not CEST. If you figure out the syntax, it should be > easy to add the extra abbreviations. Thanks for the hint. It looks rather difficult; cf tzfile(5), zic(8). Moreover the system seems to be aware of CEST: # date dilluns, 7 de maig de 2007, 21:03:53 CEST # zdump CEST CEST Mon May 7 19:04:03 2007 UTC # Looks to me rather as a problem with the way find parses dates. FWIW, my login.conf reads: [... my (indirect) login class:] # # Usuaris de La Franja. Catal=E0, UTF-8 i retocs # lafranja|usuaris de La Franja:\ :lang=3Dca_ES.UTF-8:\ :lc_all=3Dca_ES.UTF-8:\ :lc_collate=3Dca_ES.UTF-8:\ :lc_ctype=3Dca_ES.UTF-8:\ :lc_messages=3Dca_ES.UTF-8:\ :lc_monetary=3Dca_ES.UTF-8:\ :lc_numeric=3Dca_ES.UTF-8:\ :lc_time=3Dca_ES.UTF-8:\ :charset=3DUTF-8:\ :tc=3Ddefault: [...] ...but only LANG is passed to the environment -- i.e. LC_TIME is not: # echo $LANG ca_ES.UTF-8 # echo $LC_TIME LC_TIME: Undefined variable. I used to use the output of uname -v (words 5 to 9) with find in a q&d script to backup custom config files, and this is worked around by now. = Just wonder if it deserves a PR. --------------------------------------------------------------- plain text emails preferred, cf http://expita.com/nomime.html