ctime#
Canonical English timestamp string for an epoch time, in local time.
Synopsis#
use POSIX qw(ctime);
print ctime(time); # "Wed Apr 22 14:30:00 2026\n"
What you get back#
A 25-byte string including the trailing newline, or undef on
conversion failure.
Differences from upstream#
Fully compatible with upstream POSIX. The trailing newline is preserved.
See also#
asctime— same formatting, but from a broken-down time list.