Jump to content

Archived

This topic is now archived and is closed to further replies.

ego0

Adding on time

Recommended Posts

Add 120 seconds.
[code]<?php
$curtime = time();
$plus2min = $curtime + 120;
echo 'In 2 minutes it will be ' . date('g:i a',$plus2min);
?>[/code]

Ken

Share this post


Link to post
Share on other sites
Thats really simple. I was expecting this to be a very very complicated problem. Thanks :)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.