3 int convert_date_to_height(struct date_value *dv)
5 struct date_value * date = gedcom_new_date_value(dv);
7 if (date->date1.year_type != YEAR_SINGLE) {
8 debug("Date->OY conversion when type != YEAR_SINGLE");
11 if (date->date1.cal != CAL_GREGORIAN) {
12 debug("Not a gregorian calendar. Converting...");
13 date->date1.cal = CAL_GREGORIAN;
14 date->date1.year_type = YEAR_SINGLE;
17 if (gedcom_normalize_date(DI_FROM_SDN, date) != 0) {
18 debug("Error when normalizing date");
21 int year = date->date1.year;