HEX
Server: Apache
System: Linux gator4059.hostgator.com 5.14.0-687.5.4.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 28 09:20:26 EDT 2026 x86_64
User: jconxus (691)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //usr/share/awk/ctime.awk
# ctime.awk
#
# awk version of C ctime(3) function

function ctime(ts,    format)
{
    format = "%a %b %e %H:%M:%S %Z %Y"

    if (ts == 0)
        ts = systime()       # use current time as default
    return strftime(format, ts)
}