Global Converting unix_to_human and human_to_unix - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Global Converting unix_to_human and human_to_unix (/showthread.php?tid=31490) |
Global Converting unix_to_human and human_to_unix - El Forum - 06-21-2010 [eluser]pisio[/eluser] Hi All ! How I can from unix time to convert in human time "1277063669" to 2010-06-20 ... Now it's shows 2010-06-20 12:54:29 PM I wanna see only in /user/edit page only 2010-06-20 in other pages like as /forums/topics/ 2010-06-20 12:54..... That is my view page : Code: <?php and part of my user page Code: function edit() Global Converting unix_to_human and human_to_unix - El Forum - 06-21-2010 [eluser]danmontgomery[/eluser] human to unix timestamp: http://php.net/manual/en/function.strtotime.php unix timestamp to human: http://php.net/manual/en/function.date.php Global Converting unix_to_human and human_to_unix - El Forum - 06-21-2010 [eluser]pisio[/eluser] [quote author="noctrum" date="1277160234"]human to unix timestamp: http://php.net/manual/en/function.strtotime.php unix timestamp to human: http://php.net/manual/en/function.date.php[/quote] I think there is a already function. Ok , 10x ;p Sorry for my bad english. |