Function getUpdatedTimestamp