RE: [PHP-GENERAL] date math
| From: | Liz Kimber | Date: | Mon, 22 May 2000 11:33:36 +0000 |
| Subject: | RE: [PHP-GENERAL] date math | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280@lists.php.net to get a copy of this message | ||
Why not just do
date()-(60*60*24*14)
which should give you 14 days ago.
60 seconds, 60 minutes, 24 hours, 14 days.....
> -----Original Message-----
> From: Eric Porter [mailto:turbo2l@yahoo.com]
> Sent: Monday, May 22, 2000 12:27
> To: php-general@lists.php.net
> Subject: [PHP-GENERAL] date math
>
>
> I am writing a small little function to find all
> entries in a table and echo them that are 14 days
> prior to the current day. I have figured it out
> if the entry is in the same month.
> But a late entry in the previous month has me a
> bit confused.
> I am using date() to find the current day , and
> have a nifty timestamp in my table.
>
> Thanks
> Eric
>
> __________________________________________________
> Do You Yahoo!?
> Send instant messages & get email alerts with Yahoo! Messenger.
> http://im.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>