php8.5
Home/ Manual/ reference / datetime/ The DateError class

The DateError class

Thrown when the timezone database is not found, or contains invalid data.

Intro

Thrown when the timezone database is not found, or contains invalid data.

This error should never occur, and is not dependent on code. There are two child-exceptions (DateObjectError and DateRangeError) which are thrown depending on programmer error or range related issues.

Class synopsis

extends Error { }

See Also

  • DateObjectError
  • DateRangeError

Source: reference/datetime/dateerror.xml · from the official PHP manual (php/doc-en)