DateError

  • The document describes an enum that lists possible date errors.

  • Errors include issues with invalid field values for dates or datetimes, incorrect string formats, and dates falling outside allowed minimum or maximum ranges.

  • The enum also covers errors related to date ranges, such as bounds not being in order or both minimum and maximum dates being null.

  • Specific string date formats are provided for various precision levels (seconds, micros, with offset).

Enum describing possible date errors.

Proto definition

Enums

DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL

Both dates in range are null.

DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE

Date range bounds are not in order.

EARLIER_THAN_MINIMUM_DATE

Date is before allowed minimum.

INVALID_FIELD_VALUES_IN_DATE

Given field values do not correspond to a valid date.

INVALID_FIELD_VALUES_IN_DATE_TIME

Given field values do not correspond to a valid date time.

INVALID_STRING_DATE

The string date's format should be yyyy-mm-dd.

INVALID_STRING_DATE_TIME_MICROS

The string date time's format should be yyyy-mm-dd hh:mm:ss.ssssss.

INVALID_STRING_DATE_TIME_SECONDS

The string date time's format should be yyyy-mm-dd hh:mm:ss.

INVALID_STRING_DATE_TIME_SECONDS_WITH_OFFSET

The string date time's format should be yyyy-mm-dd hh:mm:ss+|-hh:mm.

LATER_THAN_MAXIMUM_DATE

Date is after allowed maximum.

UNKNOWN

The received error code is not known in this version.

UNSPECIFIED

Enum unspecified.