How do I display date and time separately from a give datetime function?
问题 I am just plugging and playing with a sample code to get a hang of chatting/messaging apps. I am using a function gettimedate such that, in my model class I have the following: private volatile long mTimedate; public myclass(....,DateType date,...){ mTimedate = date != null ? date.time : new Date().getTime(); } public final long getTimedate() { return mTimedate; } public int hashCode() { if (mId != null) { return mId.hashCode(); } int hash = mBody == null ? 0 : mBody.hashCode(); return 31 *