static long timestampToLong(Timestamp ts) { ret ts == null ? 0 : ts.date; }