RE: [PHP] Re: strtotime
| From: | Tommy Pham | Date: | Mon, 18 Oct 2010 02:57:41 +0000 |
| Subject: | RE: [PHP] Re: strtotime | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-308778@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Tamara Temple [mailto:tamouse.lists@gmail.com]
> Sent: Sunday, October 17, 2010 2:33 PM
> To: PHP General
> Subject: Re: [PHP] Re: strtotime
>
>
> On Oct 17, 2010, at 2:34 PM, John Taylor-Johnston wrote:
>
> > Here is another nifty piece of code I found. How does this work?
> > What is 31556926?
>
> Number of second in a year? (31556926 / (24 * 60 * 60) yields
> 365.2421...)
>
>
Your forgot to divide 365.25 days per year ;)