ruby: add timestamp type and decode it.