is DateTime a pre-defined function or method in php?
<p>guys im helping someone with his php code. but i  cant seem to figure out whats wrong with this code:</p>

<p><img src="http://i.stack.imgur.com/Uqspc.jpg" alt="enter image description here"></p>

<p>the system is fine in LOCALHOST. but when i uploaded it to a free hosting (000webhost.com) it gives me this error:</p>

<p><strong>"Fatal error: Call to undefined method DateTime::add() in /home/a5927002/public_html/thesis2/lib/functions.php on line 273"</strong></p>

<p>so i look for a function or class DateTime, i cant find it anywhere. but its working fine in localhost. any ideas guys?</p>
