LegacyDate::getYear - jcobban/Genealogy GitHub Wiki

$date->getYear()

Up: class LegacyDate

This returns the year if the year was specified when the date was created, otherwise 0. BC years are negative. For date ranges this value is from the beginning of the range.

Next: $date->toString($privlim, $needon, $trantab)