mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-18 03:50:26 +01:00
Add tests to repository
This commit is contained in:
11
tests/awk/ctime.awk
Normal file
11
tests/awk/ctime.awk
Normal file
@@ -0,0 +1,11 @@
|
||||
# ctime.awk
|
||||
#
|
||||
# awk version of C ctime(3) function
|
||||
|
||||
function ctime(ts, format)
|
||||
{
|
||||
format = "%a %b %d %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