Example #1
0
 function TodayYMD()
 {
     return $this->JDtoYMD(GregorianDate::YMDtoJD(date('Y'), date('n'), date('j')));
 }
Example #2
0
function search_indis_year_range($startyear, $endyear)
{
    // TODO: We should use Julian-days, rather than gregorian years,
    // to allow
    // the lifespan chart, etc., to use other calendars.
    $startjd = GregorianDate::YMDtoJD($startyear, 1, 1);
    $endjd = GregorianDate::YMDtoJD($endyear + 1, 1, 1) - 1;
    return search_indis_daterange($startjd, $endjd, '');
}