in reply to Day of week for an arbitary date using core modules
#!/usr/bin/perl -wT use strict; use Time::Piece; my ($year, $month, $day) = qw(2002 02 21); my $t = Time::Piece->strptime("$year/$month/$day", "%Y/%m/%d"); print "day of week is " . $t->day_of_week . "\n"; print "day of week is " . $t->day . "\n";
-Blake
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Day of week for an arbitary date using core modules
by davorg (Chancellor) on Feb 22, 2002 at 07:22 UTC |