Initialize the promotion date to the first year AD

I would like to initialize a gregorian date like this

boost::gregorian::date d = { 1, 1, 1 };

but year = 1

not allowed. How can I create the day before Jesus is born?

+3


source to share


1 answer


The current implementation of the Gregorian date supports dates in the range 1400-Jan-01 to 9999-Dec-31. Therefore, date handling outside this range is not directly possible.



0


source







All Articles