ViewVC Help
View File
|
Revision Log
|
View Changeset
|
Root Listing
root
/
Oni2
/
Daodan
/
MinGW
/
msys
/
1.0
/
share
/
awk
/
ctime.awk
Revision:
1046
Committed:
Mon Aug 29 13:19:38 2016 UTC
(9 years, 2 months ago) by
alloc
File size:
233 byte(s)
Log Message:
Daodan: Added Windows MinGW and build batch file
File Contents
#
Content
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
}