CodeIgniter Forums
Problems with timespan() function - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Problems with timespan() function (/thread-54225.html)



Problems with timespan() function - El Forum - 08-29-2012

[eluser]ReyPM[/eluser]
Hi every, I'm having some issues with timespan() function because for example I insert the CURRENT_TIMESTAMP in my table column wich is a timestamp type and I get:Published since 42 Years, 7 Months, 3 Weeks, 6 Days, 23 Hours, 23 Minutes what is wrong there? I miss something?


Problems with timespan() function - El Forum - 08-29-2012

[eluser]michalsn[/eluser]
Code:
echo timespan(mysql_to_unix($timestamp_from_database));