Jump to content

[SOLVED] +1 Minute


rondog

Recommended Posts

I cannot get +1 Minute to work using strtotime.

 

My code is:

<?php
$now = time();
echo "now: ".$now."<br/>";

$stamp = date('d F, Y, h:i',$now);
$plusMinute = strtotime("$stamp +1 Minute");
echo "one minute from now: ".$plusMinute;
?>

 

It echos something like:

now: 1253037001
one minute from now: 1253059800

 

Every time I refresh the now: var changes, yet the one Minute from now stays at that number

 

I've tried +1 Minute as well as next Minute

 

Any idea what I am doing wrong?

Link to comment
https://forums.phpfreaks.com/topic/174347-solved-1-minute/
Share on other sites

Archived

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

×
×
  • Create New...

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.