Cast date with time
types.castDatetime(format = "%Y-%m-%dT%H:%M:%SZ", value)
format | available options are "default", "any", and "<pattern>" where
|
---|---|
value | datetime to cast |
Types and formats specifications,
strptime
, DateTimeClasses
,
parsedate-package
and
lubridate-package
.
types.castDatetime(format = "default", value = "2014-01-01T06:00:00Z")#> [1] "2014-01-01 06:00:00 UTC"types.castDatetime(format = "%d/%m/%y %H:%M", value = "21/11/06 16:30")#> [1] "2006-11-21 16:30:00 UTC"