made the pack completely portable and wrote relevent bat files to go with it
This commit is contained in:
12
gitportable/usr/share/awk/ctime.awk
Normal file
12
gitportable/usr/share/awk/ctime.awk
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user