class Entry extends BaseMessage {

    public long getTimeStamp() {
        if (date > 1000000) {
            return Math.round(date);
        }
        if (sysTime != null) {
            try {
                final Date date = DateUtil.tolerantFromISODateString(sysTime);
                return date.getTime();
            } catch (Exception e) {
                //
            }
        }
        if (dateString != null) {
            try {
                final Date date = DateUtil.tolerantFromISODateString(dateString);
                return date.getTime();
            } catch (Exception e) {
                //
            }
        }
        return -1;
    }

}