TimeStamp获取年月日

Timestamp tmpTimestamp = timeStampList.get(i);
int year = tmpTimestamp.getYear()+1900;
int month = tmpTimestamp.getMonth() + 1;
int day = tmpTimestamp.getDate();
int hour = tmpTimestamp.getHours()

你可能感兴趣的:(TimeStamp获取年月日)