ctime#

Canonical English timestamp string for an epoch time, in local time.

תקציר#

use POSIX qw(ctime);
print ctime(time);   # "Wed Apr 22 14:30:00 2026\n"

מה מוחזר#

A 25-byte string including the trailing newline, or undef on conversion failure.

הבדלים מן ה-upstream#

Fully compatible with upstream POSIX. The trailing newline is preserved.

ראו גם#

  • asctime - same formatting, but from a broken-down time list.