fmt_cmp()
creates a character vector of patterns to match individual
format date/time components.
fmt_cmp(
sec = "S+",
min = "M+",
hour = "H+",
mday = "d+",
mon = "m+",
year = "y+"
)
A string pattern for matching the second format component.
A string pattern for matching the minute format component.
A string pattern for matching the hour format component.
A string pattern for matching the month day format component.
A string pattern for matching the month format component.
A string pattern for matching the year format component.
A named character vector of date/time format patterns. This a vector of six elements, one for each date/time component.
# Regexps to parse format components
fmt_cmp()
#> $sec
#> [1] "S+"
#>
#> $min
#> [1] "M+"
#>
#> $hour
#> [1] "H+"
#>
#> $mday
#> [1] "d+"
#>
#> $mon
#> [1] "m+"
#>
#> $year
#> [1] "y+"
#>
#> attr(,"class")
#> [1] "fmt_c"
fmt_cmp(year = "yyyy")
#> $sec
#> [1] "S+"
#>
#> $min
#> [1] "M+"
#>
#> $hour
#> [1] "H+"
#>
#> $mday
#> [1] "d+"
#>
#> $mon
#> [1] "m+"
#>
#> $year
#> [1] "yyyy"
#>
#> attr(,"class")
#> [1] "fmt_c"