make sure time is number