(Ignore the previous garbage post; it posted while I was typing; who knows why. Mouse was nowhere near the Send button).
I would recommend storing the date+time in milliseconds as a single field, just as Java's Date class does. This makes sorting work 100% properly -- a benefit I forgot to mention in my previous message. My previous message also said "seconds since 1 January 1970", when it should have said "milliseconds". That is, it's counting seconds, in a fixed-point format with millisecond resolution. If you need femptosecond resolution, add that as an additional field. :=) On Dec 27, 6:14 am, DanH <danhi...@ieee.org> wrote: > Well, you can store time as date-time modulo 24 hours -- fits easily > in 32 bits. Otherwise, probably some sort of hours/minutes/seconds > triplet (or just hours/minutes). -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en