sample_date_string_styles {parttime} | R Documentation |
Find unique forms of inputs
sample_date_string_styles(x)
x |
A |
The indices of the first instance of unique datatime formats
x <- c("2022", "T02:01", "2023", "Y1970", "2021-01", "2024-12")
x[parttime:::sample_date_string_styles(x)]