This is a simple PHP code that converts a number of seconds into a string according to the following format: M d h m s. Number of months is an approx calculation supposing months are 30 days long.