We have to catch a specific exception here. There can only be one which is raised if the parameter is not a valid timestamp.