DateTime.hasYear

class DateTime
int
hasYear
()

Return Value

Type: int

TRUE if datetime's year field is set (which should always be the case), otherwise FALSE

Meta