{
String[] edz = getEraDatetimeZone(datetimeIn);
boolean ad = edz[0].length() == 0; // AD (Common Era -- empty leader)
String datetime = edz[1];
if (datetime == null)
return new XNumber(Double.NaN);
String[] formats = {dt, d, gym, gy};
double yr = getNumber(datetime, formats, Calendar.YEAR);
if (ad || yr == Double.NaN)
return new XNumber(yr);
else
return new XNumber(-yr);
}