Calendar.ISO.valid_date-question-mark

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

valid_date?(year, month, day)

View Source (since 1.5.0)

Specs

valid_date?(year(), month(), day()) :: boolean()

Determines if the date given is valid according to the proleptic Gregorian calendar.

Examples

iex> Calendar.ISO.valid_date?(2015, 2, 28)
true
iex> Calendar.ISO.valid_date?(2015, 2, 30)
false
iex> Calendar.ISO.valid_date?(-1, 12, 31)
true
iex> Calendar.ISO.valid_date?(-1, 12, 32)
false