tjhilder Posted June 23, 2008 Share Posted June 23, 2008 Hi, I'm working on a little calculation thing, the result turned out to be 2.78125 this however is in days (it would appear as 66 hours, 45 minutes, 0 seconds. how do I format 2.78125 so that PHP displays it as HH:MM:SS ?? thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/111429-need-help-with-formatting-a-time/ Share on other sites More sharing options...
DarkWater Posted June 23, 2008 Share Posted June 23, 2008 So you want 2.78125 DAYS to be in H:M:S format? Quote Link to comment https://forums.phpfreaks.com/topic/111429-need-help-with-formatting-a-time/#findComment-571977 Share on other sites More sharing options...
tjhilder Posted June 23, 2008 Author Share Posted June 23, 2008 yes 2.78125 appears as 66:45:00 (HH:MM:SS) in excel, but I want it to appear like that by doing the same calculation in PHP. Quote Link to comment https://forums.phpfreaks.com/topic/111429-need-help-with-formatting-a-time/#findComment-571990 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.