Re: calculate the time that day ends
| From: | Dan Shirah | Date: | Tue, 03 Feb 2009 16:36:20 +0000 |
| Subject: | Re: calculate the time that day ends | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-287569@lists.php.net to get a copy of this message | ||
> Hi gang,
> I was wondering if there is way to find out what is the time that every
> day ends? I am planning to add this to the first page on an interface I am
> developing.
>
> --
> Thodoris
Doesn't every day end at 23:59:59? the next second would be 00:00:00...the
beginning of a new day! :)
So to put this time into a variable you could do:
$end_of_day = mktime(23, 59, 59, date("m"), date("d"), date("Y");
that will give you the value for today (mm/dd/yyyy) at 23:59:59.