Thread localtime timelocal (13 answers)
Opened by styx-cc at 2007-12-08 12:36

ap
 2007-12-08 13:35
#103624 #103624
User since
2007-12-08
3 Artikel
BenutzerIn
[Homepage] [default_avatar]
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;

View full thread localtime timelocal