get how minutes has passed with time()
Moderator: General Moderators
-
psychotomus
- Forum Contributor
- Posts: 487
- Joined: Fri Jul 11, 2003 1:59 am
get how minutes has passed with time()
How can I get how minutes have passed using time();
time()/60 will give you the number of minutes since January 01st, 1970, correct?
You'll need a starting time to compare the minutes passed with.
You'll need a starting time to compare the minutes passed with.
Code: Select all
$starttime = some unix timestamp;
$endtime = time();
$timepassed = ($endtime-$starttime)/60;
echo $timepassed;Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US