Validates a timestamp string against the RFC 3339 format.
This function checks whether the provided timestamp string conforms to the
RFC 3339 standard, which includes full date and time representations with
optional fractional seconds and a timezone offset. The format allows for
both 'Z' (indicating UTC) and numeric timezone offsets (e.g., "-07:00", "+05:30").
This validation ensures that the timestamp is not only correctly formatted
but also represents a valid date and time.
Parameters
timestamp: string
The timestamp string to validate.
Returns boolean
true if the timestamp is valid and conforms to RFC 3339, false otherwise.
Validates a timestamp string against the RFC 3339 format.
This function checks whether the provided timestamp string conforms to the RFC 3339 standard, which includes full date and time representations with optional fractional seconds and a timezone offset. The format allows for both 'Z' (indicating UTC) and numeric timezone offsets (e.g., "-07:00", "+05:30"). This validation ensures that the timestamp is not only correctly formatted but also represents a valid date and time.