% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/string.R
\name{is_iso_datetime}
\alias{is_iso_datetime}
\title{Check if an argument is an ISO 8601 datetime string}
\usage{
is_iso_datetime(x)
}
\arguments{
\item{x}{(\code{any})\cr
Object to check.}
}
\value{
\code{TRUE} if \code{x} is a valid ISO 8601 datetime string, \code{FALSE} otherwise.
}
\description{
Validates the \code{YYYY-MM-DDTHH:MM:SS[.sss]} format with calendar correctness, including leap year
handling. The timezone designator is optional and can be \code{Z} or an offset like \code{+05:30}.
}
\examples{
is_iso_datetime("2024-01-15T12:00:00Z")
is_iso_datetime("2024-01-15T12:00:00+05:30")
is_iso_datetime("2024-01-15T12:00:00")
}
\references{
\url{https://en.wikipedia.org/wiki/ISO_8601}
}
