gdesrosiers1805 opened a new pull request, #1685:
URL: https://github.com/apache/daffodil/pull/1685

   Read calendar years via YEAR + ERA instead of the astronomical EXTENDED_YEAR 
so BCE dates and fn:year-from-date/dateTime follow XSD 1.0 (no year zero; 1 BCE 
= -0001). Comparisons also read YEAR.
   
   A prolepticBCE flag is set when an ISO/uuuu pattern parses a BCE value. This 
lets signedYear adjust ICU's astronomical year to the XSD 1.0 year on read-out 
without mutating the stored infoset calendar.
   
   On unparse, the inverse adjustment is applied to a working clone for 
lexically reconstructed BCE values so ISO BCE dates round-trip. The ERA is 
copied so era-pattern BCE survives unparse.
   
   Year zero (0000), which XSD 1.0 disallows, is accepted under a lax calendar 
check policy and normalized to the canonical -0001 (1 BCE). Because -0001 is a 
different lexical form than the 0000 input, these values do not round-trip.
   
   DAFFODIL-3084


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to