public GPLocalizedTithi getNextTithi() { GPLocalizedTithi lt = new GPLocalizedTithi(p_location, getEndTime().TimeByAddingHours(12.0), GPTithi.NEXT_TITHI(p_tithi)); lt.setStartTime(getEndTime()); return(lt); }
public GPLocalizedTithi getPreviousTithi() { GPLocalizedTithi lt = new GPLocalizedTithi(p_location, getStartTime().TimeByAddingHours(-12.0), GPTithi.PREV_TITHI(p_tithi)); lt.setEndTime(getStartTime()); return(lt); }