/** * Change the date and time of day. * @param date The date to set (only time portion is used). * @param bDisplayOption Display changed fields if true. * @param iMoveMode The move mode. * @return The error code (or NORMAL_RETURN). */ public int setDateTime(java.util.Date date, boolean bDisplayOption, int moveMode) { if (date != null) { m_calendar.setTime(date); m_calendar.set(Calendar.YEAR, DBConstants.FIRST_YEAR); m_calendar.set(Calendar.MONTH, Calendar.JANUARY); m_calendar.set(Calendar.DATE, 1); date = m_calendar.getTime(); return this.setValue(date.getTime(), bDisplayOption, moveMode); } else return this.setData(null, bDisplayOption, moveMode); } /**
/** * Change the date and time of day. * @param date The date to set (only time portion is used). * @param bDisplayOption Display changed fields if true. * @param iMoveMode The move mode. * @return The error code (or NORMAL_RETURN). */ public int setDateTime(java.util.Date date, boolean bDisplayOption, int moveMode) { if (date != null) { m_calendar.setTime(date); m_calendar.set(Calendar.YEAR, DBConstants.FIRST_YEAR); m_calendar.set(Calendar.MONTH, Calendar.JANUARY); m_calendar.set(Calendar.DATE, 1); date = m_calendar.getTime(); return this.setValue(date.getTime(), bDisplayOption, moveMode); } else return this.setData(null, bDisplayOption, moveMode); } /**
/** * Change the date and time of day. * @param date The date to set (only time portion is used). * @param bDisplayOption Display changed fields if true. * @param iMoveMode The move mode. * @return The error code (or NORMAL_RETURN). */ public int setDateTime(java.util.Date date, boolean bDisplayOption, int moveMode) { if (date != null) { m_calendar.setTime(date); m_calendar.set(Calendar.YEAR, DBConstants.FIRST_YEAR); m_calendar.set(Calendar.MONTH, Calendar.JANUARY); m_calendar.set(Calendar.DATE, 1); date = m_calendar.getTime(); return this.setValue(date.getTime(), bDisplayOption, moveMode); } else return this.setData(null, bDisplayOption, moveMode); } /**