This commit is contained in:
2024-11-18 18:35:59 +08:00
commit f00cf814ce
6488 changed files with 2035373 additions and 0 deletions
+12
View File
@@ -0,0 +1,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)
}