Handle integer timestamp

Handle integer timestamp, read the timestamp correctly and if the result
is timestamp return it as integer