|
From: | Hermann Peifer |
Subject: | Re: [bug-gawk] Gawk manual: 9.1.5 Time Functions, strftime([format [, timestamp [, utc-flag]]]) |
Date: | Sun, 03 Feb 2013 16:53:12 -0200 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 |
On 2013-02-03 16:21, Aharon Robbins wrote:
Hi Hermann. Andy's answer is correct. The idea is that with no arguments strftime() defaults to the value of PROCINFO["strftime"] and the current time of day, but if you have a specific timestamp, you need to also supply a format value. However, having it available from PROCINFO["stftime"] lets you not have to remember (or look up) the values for the format string, you can just do timestamp = ... # get from whatever print strftime(PROCINFO["strftime"], timestamp) Thanks, Arnold
Thanks to both of you for your replies. I see that I was misinterpreting the manual.
Regards, Hermann
[Prev in Thread] | Current Thread | [Next in Thread] |