PHP Date Question -


I am trying to do some math using the dates in PHP. I am modifying a shoutbox and I want to implement the following functionality.


If the post date = today, the post time refund

else if date = tomorrow, return "tomorrow"

else date = X days Ago


How many days before I would use php's date functions to calculate a timestamp (timestamp is formatted in UNIX time)

< Div class = "post-text" itemprop = "text">

Try it out:


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -