interval of sets

A

Anonymous

Guest
It depends on the time format.
Tell us what you have in the database and wich format you want for the resulting data.
 
You can use this function in many ways.
I think this is what you are looking for:
Code:
<?php 
//different format options, choose whatever you need
echo "<b>time() function: </b>".time()." <b>is the same as  strtotime ('now') function: </b>"; echo strtotime ("now"), "<br>";
echo ( strtotime ("12 March 2003") - strtotime ("now") )."<br>";
echo strtotime ("10 September 2000"), "<br>";
echo strtotime ("+1 week"), "<br>";
echo strtotime ("+1 week 2 days 4 hours 2 seconds"), "<br>";
echo strtotime ("next Thursday"), "<br>";
echo strtotime ("last Monday"), "<br>";
?>
I hope it helps!
 
Back
Top