On Thu, Dec 20, 2012 at 12:20 AM, Denis Laplante <[email protected]> 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.
