date_overflows()

date_overflows()#

Checks if a given timestamp exceeds the system’s time_t limits, ensuring it fits within the supported range.

Prototype

int date_overflows(timestamp_t date);

Parameters

Key

Type

Description

date

timestamp_t

The timestamp to check for overflow.


Return Value

Returns 1 if the timestamp exceeds the system’s time_t limits, otherwise returns 0.

Notes

This function ensures that the given timestamp does not exceed the maximum representable value in time_t, preventing potential overflows.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples