Re: adding 60 to a date
| From: | Scott St. John | Date: | Tue, 07 May 2002 13:55:42 +0000 |
| Subject: | Re: adding 60 to a date | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-96430@lists.php.net to get a copy of this message | ||
Will the fact that the server is on NT be a problem?
On Tue, 7 May 2002, John S. Huggins wrote:
> On Tue, 7 May 2002, Scott St. John wrote:
>
> >-Morning....
> >-
> >-I am working on a password aging system that will force a user to change
> >-their password every 60 days. Can anyone recommend the best method for
> >-taking the current date and adding 60 days to that number? Should I do a
> >-unix timestampe and add or strtotime and add 60 days?
>
> Yes, using the unix timestamp is most frequently the wise thing to do - at
> least for me :-|
>
> Just add 5,184,000 seconds to the current timestamp.
>
> **************************************
>
> John Huggins
> VANet
>
> jhuggins@va.net
> http://www.va.net/
>
> **************************************
>
>
>
--