Cast a specific month in a specific year as per XMLSchema gYearMonth. Usual lexical representation is: YYYY-MM.
types.castYearmonth(format, value)
format | no options (other than the default) |
---|---|
value | list or string with yearmonth to cast |
#> [[1]] #> [1] 2000 #> #> [[2]] #> [1] 10 #>types.castYearmonth(format = "default", value = "2018-11")#> [[1]] #> [1] 2018 #> #> [[2]] #> [1] 11 #>