Logo Search packages:      
Sourcecode: pcalendar version File versions  Download package

Date net::sf::linuxorg::pcal::engine::Engine::getPredictedBirthDay ( Date  date,
int  pregnancyDayNumber 
) [inline]

Get the predicted birthday for a specified date and pregnancy day number

Parameters:
date- currently selected date
pregnancyDayNumber- the corresponding pregnancy day number
Returns:
predicted date of the birth

Definition at line 1444 of file Engine.java.

Referenced by net::sf::linuxorg::pcal::MainWindow::jumpToDate(), and net::sf::linuxorg::pcal::engine::EngineTest::testGetPredictedBirthDay().

                                                                          {
            java.util.GregorianCalendar calendar = new java.util.GregorianCalendar();

            calendar.setTime(date);
            calendar.add(Calendar.DATE, REGULAR_PREGNANCY_DAYS - pregnancyDayNumber);
            return calendar.getTime();
      }

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index