Handle timestamps that are already integers

The Ruby version of this library generates the timestamp as a string, but this library generates it as an integer. 

This PR updates `validate_timestamp!/2` to handles both cases.