DateTime.hasYear

Return: %TRUE if @datetime<!-- -->'s year field is set (which should always be the case), otherwise %FALSE

class DateTime
bool
hasYear
()

Meta