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.