source: Daodan/MinGW/msys/1.0/share/awk/ctime.awk@ 1080

Last change on this file since 1080 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

File size: 233 bytes
Line 
1# ctime.awk
2#
3# awk version of C ctime(3) function
4
5function 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.