in reply to seconds since the epoch

There's also strftime in core module POSIX, as mentioned in the docs for localtime.
use POSIX qw( strftime ); my $time = 400_000_000; print strftime("%y/%m/%d %H:%M\n", localtime($time));

Update: Changed "%Y" to "%y" to match OP's format.

Replies are listed 'Best First'.
Re^2: seconds since the epoch
by tachyon-II (Chaplain) on Mar 16, 2008 at 00:50 UTC
    s/y/Y/ s/Y/y/
      eh? there is no "y" in my postOh, you mean s/Y/y/
        Maybe y/Y/y/ would be clearer, and have slightly better performance in editing the comment... :-)