Re: [PHP] Date(), adjusted for one year

2002-09-18 Thread Robert Cummings

Jacob Miller wrote:
> 
> With leap year adjustment...
> 
> strtotime("+1 year", );
> 
> will return a unix timestamp.

Nice, don't think I've ever used that function :)

Cheers,
Rob.
-- 
.-.
| Robert Cummings |
:-`.
| Webdeployer - Chief PHP and Java Programmer  |
:--:
| Mail  : mailto:[EMAIL PROTECTED] |
| Phone : (613) 731-4046 x.109 |
:--:
| Website : http://www.webmotion.com   |
| Fax : (613) 260-9545 |
`--'

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




Re: [PHP] Date(), adjusted for one year

2002-09-18 Thread Jacob Miller

With leap year adjustment...

strtotime("+1 year", );

will return a unix timestamp.

- Jacob

At 01:49 09/19/2002, Robert Cummings wrote:
>"Support @ Fourthrealm.com" wrote:
> >
> > Hi guys,
> >
> > What is the easiest way to get the date of one year from today?
> > Accommodating for leap years is not essential (but would be a nice bonus).
>
>Without leap year adjustment...
>
>date( "your format string here", time() + 60 * 60 * 24 * 365 );
>
>HTH,
>Rob.
>--
>.-.
>| Robert Cummings |
>:-`.
>| Webdeployer - Chief PHP and Java Programmer  |
>:--:
>| Mail  : mailto:[EMAIL PROTECTED] |
>| Phone : (613) 731-4046 x.109 |
>:--:
>| Website : http://www.webmotion.com   |
>| Fax : (613) 260-9545 |
>`--'
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php


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




Re: [PHP] Date(), adjusted for one year

2002-09-18 Thread Robert Cummings

"Support @ Fourthrealm.com" wrote:
> 
> Hi guys,
> 
> What is the easiest way to get the date of one year from today?
> Accommodating for leap years is not essential (but would be a nice bonus).

Without leap year adjustment...

date( "your format string here", time() + 60 * 60 * 24 * 365 );

HTH,
Rob.
-- 
.-.
| Robert Cummings |
:-`.
| Webdeployer - Chief PHP and Java Programmer  |
:--:
| Mail  : mailto:[EMAIL PROTECTED] |
| Phone : (613) 731-4046 x.109 |
:--:
| Website : http://www.webmotion.com   |
| Fax : (613) 260-9545 |
`--'

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




[PHP] Date(), adjusted for one year

2002-09-18 Thread Support @ Fourthrealm.com

Hi guys,

What is the easiest way to get the date of one year from today?
Accommodating for leap years is not essential (but would be a nice bonus).

Thanks,
Peter


- - - - - - - - - - - - - - - - - - - - -
Fourth Realm Solutions
[EMAIL PROTECTED]
http://www.fourthrealm.com
Tel: 519-739-1652
- - - - - - - - - - - - - - - - - - - - -


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