Convert timestamps to long's

not all timestamps are from this century, those from before the year 2000 have
less digits. Comparing the bytes only is wrong in this case.

@zznate please look at this first thing Monday morning.