Create a formattable POSIXlt vector
# S3 method for class 'POSIXlt'
formattable(
x,
...,
formatter = "format.POSIXlt",
preproc = NULL,
postproc = NULL
)
a formattable
POSIXlt vector
times <- as.POSIXlt("2015-04-10 09:30:15") + 1:5
ftimes <- formattable(times, format = "%Y%m%dT%H%M%S")
ftimes
#> [1] 20150410T093016 20150410T093017 20150410T093018 20150410T093019
#> [5] 20150410T093020
ftimes + 30
#> [1] 20150410T093046 20150410T093047 20150410T093048 20150410T093049
#> [5] 20150410T093050