codekingpro/portable-devtools
114k
1# ctime.awk2#3# awk version of C ctime(3) function4#5# This file and how to use it are described in the manual.6# Therefore, we respectfully advise you to Read The Fine Manual7# for more information.8 9function ctime(ts, format)10{11 format = "%a %b %e %H:%M:%S %Z %Y"12 13 if (ts == 0)14 ts = systime() # use current time as default15 return strftime(format, ts)16}17 