gdesrosiers1805 commented on code in PR #1685:
URL: https://github.com/apache/daffodil/pull/1685#discussion_r3436404250
##########
daffodil-core/src/main/scala/org/apache/daffodil/lib/calendar/DFDLCalendar.scala:
##########
@@ -38,6 +40,21 @@ object DFDLCalendarOrder extends Enumeration {
)
}
+object DateTimeUtil {
+
+ /**
+ * Returns the XSD 1.0 signed year of a calendar. YEAR is the positive
+ * year-of-era; a BCE year is returned negated.
+ *
+ * @param calendar the ICU calendar instance
+ * @return signed year (e.g. 1 BCE -> -1, 1 CE -> 1)
+ */
+ def signedYear(calendar: Calendar): Int = {
Review Comment:
I think that's a good idea
--
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]