extract query string as timestamp in sec