blob: cea25b7a29297c4ad8dae6b2763503dd39e0355e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# 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)
}
|