time() <> database.datetime || database.timestamp
What database are you using?
to set a timestamp in many databases, set it to null and it will be set to the current time.
To retrieve a timestamp you need to use your databases method of retrieving it as seconds since epoch. In mysql this is done by unix_timestamp(timestamp_column)
Tom
For more, check out http://www.ciwbootcamp.com. They teach this stuff all the time.