Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 May 2007 21:31:58 +0200
From:      "Ernest Sales" <ersaloz@gmail.com>
To:        <freebsd-questions@freebsd.org>
Cc:        'Lowell Gilbert' <freebsd-questions-local@be-well.ilk.org>
Subject:   RE: find and timezone
Message-ID:  <000001c790de$62db09d0$2101a8c0@asinusaureus>
In-Reply-To: <44ps5dyk4y.fsf@Lowell-Desk.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
On May 6, 2007 Lowell Gilbert wrote:=20

> "Ernest Sales" <ersaloz@gmail.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000001c790de$62db09d0$2101a8c0>