1、奇葩问题微信
微信消息的建立时间是长整型,而且是距离1970年的秒数而不是毫秒数,因此在获得它的时候须要再乘以1000L,这样就能够转换到咱们要的时间了。ide
Long longTime = Long.parseLong(message.getCreateTime())*1000L;spa
Date formatDate = UtilDate.parseDateForLong(longTime);orm