So, I add 1 to the number and move on.
Thanks,
Hugh
----- Original Message ----- 
From: Jim Winstead <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 05, 2002 3:24 PM
Subject: [PHP] Re: Can't get accurate day of year


> Hugh Danaher <[EMAIL PROTECTED]> wrote:
> > Hello All and Happy New Year.  
> > I have a simple routine to get the year, date and the day of year.
> > Year and date come out correctly but the day of year is one less than
> > the date.  It being January, it's easy to see the error. The only
> > thing I can figure, is that the date(z) function gets a fractional
> > value and rounds down not rounds up.  I really could use some input on
> > this before I just add one to the result and move on.
> 
> as http://www.php.net/date says, the range of the 'z' format is from 0
> to 365. january 1st is day 0.
> 
> jim
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to