Jump to content

problem with strtotime


rantsh

Recommended Posts

I'm trying to get the hour of 15 minutes ago with strtotime and I'm using the following code

[code]
$this->timeStr = "2007-01-29 10:11:54";
$datenew = date("Y-m-d H:i:s",strtotime("-15 minute",$this->timeStr));
[/code]

and can't seem to make it work, I've tried with [b]minute [/b](singular) and [b]minutes [/b]and still no good... the output of this operation is [b]1969-12-31 20:18:27[/b] I have no clue of what's going on.....!!!!

does anyone know what can be wrong???
Link to comment
https://forums.phpfreaks.com/topic/36181-problem-with-strtotime/
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.