return integer instead of string for timestamp