that is funny, we posted our posts with in seconds of each others and we both are asking about time.
anyway
I trying to learn stuff about time too.
maybe you can use this:
gmstrftime('S', time())
returns the number of seconds right now.
meaning
param one = format for month, day, week, hour, second
param two = current time right now
hope that helps some