Initial Windows agent repository
This commit is contained in:
commit
a0db0c2e5b
10589 changed files with 3844063 additions and 0 deletions
16
OGP64/usr/share/awk/ctime.awk
Normal file
16
OGP64/usr/share/awk/ctime.awk
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# ctime.awk
|
||||
#
|
||||
# awk version of C ctime(3) function
|
||||
#
|
||||
# This file and how to use it are described in the manual.
|
||||
# Therefore, we respectfully advise you to Read The Fine Manual
|
||||
# for more information.
|
||||
|
||||
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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue