Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/local/bin/perl -w use strict; use diagnostics; use CGI qw(:standard); use Time::Local 'timelocal_nocheck'; my $DatStr1 = localtime timelocal_nocheck 0,0,0,9,4,2003; my @text_dat1 = split( / /, $DatStr1); my $DatStr2 = localtime timelocal_nocheck 0,0,0,11,4,2003; my @text_dat2 = split( / /, $DatStr2); print header(); print "@text_dat1[0] @text_dat1[1] @text_dat1[2] @text_dat1[3] @text_d +at1[4]<br>\n"; print $DatStr1."<br><br>\n"; print "@text_dat2[0] @text_dat2[1] @text_dat2[2] @text_dat2[3] @text_d +at2[4]<br>\n"; print $DatStr2."<br>\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem splitting Time::Local result
by bobn (Chaplain) on Jul 28, 2003 at 05:33 UTC | |
|
Re: Problem splitting Time::Local result
by cleverett (Friar) on Jul 28, 2003 at 16:24 UTC |