2007/09/13 13:19

Adding and Subtracting Time


The time () function generates a long string of numbers representing how many seconds have passed since January 1, 1970. It is possible to add and subtract time by adding and subtracting seconds.

<?php
$b = time () - 3600;
print date("D, F jS G:i a",$b) . "<br>";
?>


You can add or subtract any amount of seconds to the time function while you create it's variable. This let's you offset minutes, hours, days or even years.
Trackback 6 Comment 0

Trackback : Cannot send a trackbact to this post.

  1. Subject Buy amoxicillin online cheap amoxicillin.

    Tracked from Buy amoxicillin without prescription. 2008/12/29 02:45 delete

    Buy amoxicillin without prescription.

  2. Subject Amoxicillin.

    Tracked from Amoxicillin flavors for kids. 2009/05/25 23:21 delete

    Amoxicillin. Amoxicillin dosage. Amoxicillin and vagina. Amoxicillin effects on a fetus. Amoxicillin side effects. Amoxicillin soar throat.

  3. Subject How quickly does amoxicillin work.

    Tracked from Prescription free amoxicillin. 2009/05/26 00:03 delete

    Amoxicillin dosage instructions.

  4. Subject different money making ideas

    Tracked from moneyideas 2010/01/29 02:53 delete

    moneyideas

  5. Subject different money making ideas

    Tracked from moneyideas 2010/01/29 11:41 delete

    moneyideas

  6. Subject different money making ideas

    Tracked from moneyideas 2010/01/31 16:40 delete

    moneyideas