Link to home
Start Free TrialLog in
Avatar of wvanthony
wvanthony

asked on

Calculating the current day as a value

I am trying to calculate the current day of the year as a value, and I am not sure what is wrong....today is Friday, August 19th, 2005 - day 231 of the year, by my count....when I run the following code, the result is 230:


# using Time::tm objects
use Time::localtime;
$tm = localtime;
$testday2 = $tm->yday;
print "here comes the testday2\n";
print $testday2;


Am I doing something wrong?  Any assistance would be greatly appreciated....thx!
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wvanthony
wvanthony

ASKER

Thank you once again, ozo!