Hello, the following question arose, you need to store the date and time in the database (for example, 12:30:00 01-06-2012), then in the script you need to get the date of the person who came in, and subtract data from the user from the database, and display the result of the example: 2d. 14-30-45.
I messed up the reference book, but without success, tell me how to do this? In what format to store data in the database, how to perform an arithmetic operation on the date? Analogue met on the site 2012god.ru (not advertising), they have a similar hat.