aboutsummaryrefslogtreecommitdiffstats
path: root/awklib/eg/lib/ctime.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-09-22 19:49:34 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-09-22 19:49:34 +0300
commit06e16db227de0422f33b5f83817df55340f11846 (patch)
tree792cdf5a56ceb3fd8bef2353ca640a7d9920e604 /awklib/eg/lib/ctime.awk
parenteff1b6b21720518f2ea9dbd862fe3844d899db08 (diff)
downloadegawk-06e16db227de0422f33b5f83817df55340f11846.tar.gz
egawk-06e16db227de0422f33b5f83817df55340f11846.tar.bz2
egawk-06e16db227de0422f33b5f83817df55340f11846.zip
More doc fixes.
Diffstat (limited to 'awklib/eg/lib/ctime.awk')
-rw-r--r--awklib/eg/lib/ctime.awk3
1 files changed, 2 insertions, 1 deletions
diff --git a/awklib/eg/lib/ctime.awk b/awklib/eg/lib/ctime.awk
index ca750370..cea25b7a 100644
--- a/awklib/eg/lib/ctime.awk
+++ b/awklib/eg/lib/ctime.awk
@@ -4,7 +4,8 @@
function ctime(ts, format)
{
- format = PROCINFO["strftime"]
+ format = "%a %b %e %H:%M:%S %Z %Y"
+
if (ts == 0)
ts = systime() # use current time as default
return strftime(format, ts)