Re: calculate the time that day ends

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

 



> 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.

[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