You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
# ctime.awk
|
|
#
|
|
# awk version of C ctime(3) function
|
|
|
|
function ctime(ts, format)
|
|
{
|
|
format = "%a %b %e %H:%M:%S %Z %Y"
|
|
|
|
if (ts == 0)
|
|
ts = systime() # use current time as default
|
|
return strftime(format, ts)
|
|
}
|