Parsing timestamp to int