source:
Daodan/MinGW/msys/1.0/share/awk/ctime.awk@
1130
Last change on this file since 1130 was 1046, checked in by , 8 years ago | |
---|---|
File size: 233 bytes |
Line | |
---|---|
1 | # ctime.awk |
2 | # |
3 | # awk version of C ctime(3) function |
4 | |
5 | function ctime(ts, format) |
6 | { |
7 | format = "%a %b %d %H:%M:%S %Z %Y" |
8 | if (ts == 0) |
9 | ts = systime() # use current time as default |
10 | return strftime(format, ts) |
11 | } |
Note:
See TracBrowser
for help on using the repository browser.