R/class_partial_time_min_max.R
max.partial_time.Rd
Get the maximum of a parttime vector
# S3 method for partial_time max(..., na.rm = FALSE, na.warn = TRUE)
partial_time objects
whether NA should be removed when calculating max
NA
whether to raise a warning for NA
A partial_time scalar
partial_time
max(parttime(c("2019", "2018", "2019-02", "2018-03"))) #> Warning: NAs introduced by coercion #> <partial_time<YMDhms+tz>[1]> #> [1] "0000-00-00 00:00:00"