Re: strtotime

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I see I broke a rule.  The variable can't start with a number.  Still
strtotime doesn't work with -18 months   How would you handle this?  Ron

On Sun, 2008-02-10 at 06:46 -0500, Ron Piggott wrote:
> I am trying to calculate what was the date 18 months ago.  When I give
> the command:
> 
> $18_months_ago = strtotime("-18 months");
> 
> It comes back with: 
> 
> Parse error: parse error, unexpected T_LNUMBER, expecting T_VARIABLE
> 
> How would you calculate 18 months ago from today?
> 
> Ron
-- 
ron.piggott@xxxxxxxxxxxxxxxxxx 
www.actsministrieschristianevangelism.org 

Acts Ministries Christian Evangelism 
"Where People Matter" 
12 Burton Street 
Belleville, Ontario, Canada   K8P 1E6 
 
In Belleville Phone : (613) 967-0032 
In North America Call Toll Free : (866) ACTS-MIN 
Fax: (613) 967-9963 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux