Hi there!
Is it true that cctz uses astronomical year numbering (negativ year values) for dates before christ?
For example "Western Christian Era" date: 10. July 20 BC =
Day = 10;
Month = 7;
Year = -19; (negativ number)
When converting from "Local Time" to "UTC" and vice versa I noticed that cctz::civil_second(..) accepts dates with year = 0 or even negativ year numbers. There's also no BC and AD parameter for years before and after the birth of christ.
For example for "UTC" to "Local Time" conversion:
cctz::time_zone tz_local;
cctz::load_time_zone("Europe/Paris", &tz_local);
const auto timepoint = cctz::convert(cctz::civil_second(-19, 7, 10, 12, 0, 0), tz_local); // year = -19 valid, no error message
const auto bl = tz_utc.lookup(timepoint);
UTC_Year = bl.cs.year(); // Result UTC_Year = -19;
So I suppose cctz is calculating with astronomical year numbering and the user has to convert cctz dates to "Western Christian Era" year numbering. Is that correct?
I ask this question to verify that I use and understand cctz correctly.
Best regards,
Susanne