parse timestamp of message