Thread localtime timelocal
(13 answers)
Opened by styx-cc at 2007-12-08 12:36 Code (perl): (dl
)
1 2 3 4 5 6 7 use POSIX 'strftime'; sub get_day_name { my ( $day, $month, $year ) = @_; my $week_day = strftime '%w', 0, 0, 0, $day, $month - 1, $year; return ( qw( So Mo Di Mi Do Fr Sa ) )[ $week_day ]; } *AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1}
&Just->another->Perl->hack; |