|
From: | Hermann Peifer |
Subject: | Re: [bug-gawk] Problem with strftime |
Date: | Fri, 21 Oct 2011 15:29:56 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 |
On 21/10/2011 15:05, Aharon Robbins wrote:
Hi. The problem is defining "reasonable" negative values. I don't want to uglify the code and in any case whatever heuristic I use will be wrong for someone. Perhaps it's reasonable to allow it to be negative by one day, to allow for time zone differences, but that's it. Unless someone complains bitterly, I'm going to leave it as is. Thanks, Arnold
No complaint or anything from my side, I just thought that as mktime() also generates negative values, e.g.:
$ TZ=UTC gawk 'BEGIN{print mktime("1969 12 31 0 0 0")}' -86400...it could also make sense that strftime() can convert this (reasonable) negative value back to a string. But I do see the problem with separating "reasonable" negative values from "unreasonable" ones.
Hermann
[Prev in Thread] | Current Thread | [Next in Thread] |