I always use unix timestamps for everything, but am wondering if there is a better way.
What do you use to store timestamps and why?
timeval-style (time_t + microseconds) if I need sub-second accuracy, else just time_t. You can use a 64-bit integer value to store time_t * 1000000 + usec and you are overflow-proof for over +/- 292,000 years.