this question has certainly came up before. Every time I deal with a date and the date class, I come to the point where I wonder if only dates from 1.1.1970 can be processed correctly by the class (leap years, weeks, weekdays etc.). I have an application where dates around 1100 or 223 B.C. are also processed (dates before the introduction of the Gregorian calendar). Can the class also handle this “correctly”?
Maybe someone from Xojo @Paul Lefebvre can answer the question explicitly and include a clear internal reference in the documentation. I find this 1970 date confusing.
Xojo.Core.Date uses ICU (International Components for Unicode) for its date handling, supporting dates starting from 0001-Jan-01 and switching between Julian and Gregorian calendars on 1582-Oct-04.
Apples NSDate and NSCalendar are based on the same principles (if not the same code at some level)
Xojo’s date class wraps the Calendar & Date into a single object and there’s no way to separate the two or tell Date to use a different Calendar system like Hijri, Julian etc