See the Date::Parse   Module from cpan


On 10/31/06, Sara <[EMAIL PROTECTED]> wrote:
I am getting Month, Day and Year from Drop Downs of a form to convert given 
values to Unix timestamp.
I am able to put values in all the variables below except for $wday & $yday. 
Any ideas as how I can get those with limited user input of month, day and year 
only?

#!/usr/local/bin/perl
use POSIX;

$sec = 1;
$min = 0;
$hour = 0;
$mday = 01;
$mon = 10;
$year = 107;
$wday = ?;
$yday = ?;
$timestamp = mktime($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,-1);
print ($timestamp);




--
David Romero
##################################
http://www.iluminawebs.com

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to