Calendar.compatible_calendars-question-mark

You're seeing just the function compatible_calendars-question-mark, go back to Calendar module for more information.
Link to this function

compatible_calendars?(calendar, calendar)

View Source (since 1.5.0)

Specs

compatible_calendars?(calendar(), calendar()) :: boolean()

Returns true if two calendars have the same moment of starting a new day, false otherwise.

If two calendars are not compatible, we can only convert datetimes and times between them. If they are compatible, this means that we can also convert dates as well as naive datetimes between them.