Perhaps there are flaws, but I mostly find the date/time system in WordPress works quite well.

The human_time_diff() is particularly awesome :) That little function has saved me a ton of my own time in the past.