mforan Posted January 1, 2009 Share Posted January 1, 2009 timediff($info[7],$time) well u know what that outputs, but is there a way to reverse it? (what i mean by this, is instead of saying 23 minutes ago, 3 days blah blah remain...) Link to comment https://forums.phpfreaks.com/topic/139099-timediff/ Share on other sites More sharing options...
mforan Posted January 2, 2009 Author Share Posted January 2, 2009 *bump* can this be done then? Link to comment https://forums.phpfreaks.com/topic/139099-timediff/#findComment-727783 Share on other sites More sharing options...
DarkWater Posted January 2, 2009 Share Posted January 2, 2009 timediff() is not a PHP function, so I have no idea what you're asking. Link to comment https://forums.phpfreaks.com/topic/139099-timediff/#findComment-727786 Share on other sites More sharing options...
redarrow Posted January 2, 2009 Share Posted January 2, 2009 timediff($info[7],$time) well u know what that outputs, but is there a way to reverse it? (what i mean by this, is instead of saying 23 minutes ago, 3 days blah blah remain...) SORRY DONT NO WHAT IT OUT PUTS. Link to comment https://forums.phpfreaks.com/topic/139099-timediff/#findComment-727836 Share on other sites More sharing options...
DarkWater Posted January 2, 2009 Share Posted January 2, 2009 I think your caps lock key is broken. Link to comment https://forums.phpfreaks.com/topic/139099-timediff/#findComment-727840 Share on other sites More sharing options...
mforan Posted January 2, 2009 Author Share Posted January 2, 2009 in that case, is there any php function that will output how long there is left. for example, 1000 unix seconds of 10000? i think timediff() maybe a mysql function actually, i tryed timeadd() but it doesnt recognise it on the server? timediff outputs: 2 minutes ago what i need is something that says "2 days 12 hours, 33 minutes remaining" Link to comment https://forums.phpfreaks.com/topic/139099-timediff/#findComment-728164 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.