[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: find option -newermt parses time in GMT-7 timezone
From: |
James Youngman |
Subject: |
Re: find option -newermt parses time in GMT-7 timezone |
Date: |
Wed, 27 Mar 2013 00:24:34 +0000 |
On Thu, Dec 20, 2012 at 12:20 AM, Denis Laplante <address@hidden> wrote:
> The shell script below demonstrates that gnu "find" parses times for option
> -newermt in timezone GMT-7 (Indochina).
> I discovered this when looking for log files modified around reboot time, and
> getting nonsensical results.
[...]
> TIMES="
> 2012-11-15t00:29
> 2012-11-15t00:31
> 2012-11-15t01:29
These are understood by the find's date parser (the same one as used
in GNU date) as being in timezone 'Tango' which is abbreviated 't'
(see
http://www.timeanddate.com/library/abbreviations/timezones/military/t.html).
Compare for example:
$ date -u -d '2012-11-15t00:29'
Wed Nov 14 17:29:00 UTC 2012
If you want to specify T as a separator between the date and the time,
per ISO801, you need to use an upper-case "T". For more details,
please refer to
<http://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations>.
Thanks,
James.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: find option -newermt parses time in GMT-7 timezone,
James Youngman <=