/** * Gets the date of DateHeader. The date is repesented by the Calender * object. * * @return the Calendar object representing the date of DateHeader */ public Calendar getDate() { if (date == null) return null; return date.getJavaCal(); }
/** Get the time offset from the current time. * *@return offset from the current time. */ public int getDeltaSeconds() { // long ctime = this.getJavaCal().getTimeInMillis(); long ctime = this.getJavaCal().getTime().getTime(); return (int) (ctime - System.currentTimeMillis()) / 1000; }