Timer question

hi guys,

Here’s what i need to do:

When I press a start button I want to send the current time (hours, minutes and seconds) to a database. When I press the stop button I want to check the difference between the time that’s in the database and the time when the stop button is pressed. When i get the difference i want to do:

30 minutes - difference.

The idea is to get 2 flash movies, connected to a database, with a 30 minutes countdown, without being a difference between the 2.

thanks