fix-timestampe-type

and changed return type of unmarshal_timestamp() to long(milliseconds).