in reply to time difference

What have you tried?

Check out the stat() function for getting the creation time.