Jump to content

subtract timestamp from date


brianlange

Recommended Posts

When I subtract a timestamp value from a date value I am getting something like "-00 00:05:04.312167"

How do I convert this to a more readable format so the the leading zeroes are removed and nothing is displayed beyond the seconds value?

 

I am googling at the moment...not being lazy

 

 

Thanks,

 

Brian

Link to comment
https://forums.phpfreaks.com/topic/247237-subtract-timestamp-from-date/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.