in reply to Re: The date last monday
in thread The date last monday
Am I asking to much to do this all in one go?sub get_CCYYMMDD{ my $timecode = $_[0]; my ($day, $month, $year) = (localtime($timecode))[3..5]; $year += 1900; $month++; $month = $month<10 ? "0".$month : $month; $day = $day<10 ? "0".$day : $day; my $today = $year.$month.$day; #print $today."\n"; return $today; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: The date last monday
by davorg (Chancellor) on Oct 03, 2006 at 11:26 UTC | |
by Scarborough (Hermit) on Oct 03, 2006 at 12:00 UTC | |
|
Re^3: The date last monday
by Old_Gray_Bear (Bishop) on Oct 03, 2006 at 11:33 UTC | |
by Scarborough (Hermit) on Oct 03, 2006 at 12:35 UTC | |
|
Re^3: The date last monday
by johngg (Canon) on Oct 03, 2006 at 11:19 UTC | |
by Scarborough (Hermit) on Oct 03, 2006 at 11:56 UTC | |
by davorg (Chancellor) on Oct 03, 2006 at 11:54 UTC | |
by johngg (Canon) on Oct 03, 2006 at 13:09 UTC |