![]() |
How to change format for output of timespan function - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11) +--- Thread: How to change format for output of timespan function (/showthread.php?tid=61724) |
How to change format for output of timespan function - jigapate - 05-09-2015 Hello, Timespan function returns numbers as 3 hours 45 minutes, but how can we customise output to like 03:45? Thanks, RE: How to change format for output of timespan function - Muzikant - 05-10-2015 I think you can not do it easily. But this could be helpful for you: RE: How to change format for output of timespan function - isabella - 06-18-2015 You can use a Format function in which you tell the format in which you want to get the required output. |