3 Einträge, 1 Seite |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
my $args = undef; $args = shift if $_[0]; my @date = gmtime(time); my @month = qw( Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec ); my @days = qw( Sun Mon Tue Wed Thu Fri Sat ); print 'Date: '.$days[$date[6]].', '. sprintf("%02d", $date[3]).' '. $month[$date[4]].' '. (sprintf("%02d", $date[5])+1900).' '. sprintf("%02d", $date[2]).':'. sprintf("%02d", $date[1]).':'. sprintf("%02d", $date[0]).' GMT', "\n"; print 'Server: Reifensuchmaske', "\n"; print 'Cache-Control: private, s-maxage=0, max-age=0, must-revalidate', "\n"; print 'Content-Type: application/x-www-form-urlencoded; charset=iso-8859-1', "\n"; print "\n"; print $args->{content};
print 'Content-Length: '.length($args->{content}), "\n";
1 2 3 4 5 6 7
print 'Date: '.$days[$date[6]].', '. sprintf("%02d", $date[3]).' '. $month[$date[4]].' '. (sprintf("%02d", $date[5])+1900).' '. sprintf("%02d", $date[2]).':'. sprintf("%02d", $date[1]).':'. sprintf("%02d", $date[0]).' GMT', "\n";
1 2 3
print sprintf "Date: %s, %02d %s %04d %02d:%02d:%02d GMT", $days[$date[6]], $date[3], $month[$date[4]], $date[5]+1900, $date[2], $date[1], $date[0];
renee+2008-04-30 14:30:10--Code (perl): (dl )1 2 3print sprintf "Date: %s, %02d %s %04d %02d:%02d:%02d GMT", $days[$date[6]], $date[3], $month[$date[4]], $date[5]+1900, $date[2], $date[1], $date[0];
3 Einträge, 1 Seite |