parse timestamp using gate