powered by
Cast time without a date
types.castTime(format = "%H:%M:%S", value)
available options are "default", "any", and "<pattern>" where
default
An ISO8601 time string e.g. hh:mm:ss
any
As for types.castDate
types.castDate
<pattern>
time to cast
Types and formats specifications, strptime, DateTimeClasses, parsedate-package and lubridate-package.
strptime
DateTimeClasses
parsedate-package
lubridate-package
types.castTime(format = "default", value = '06:00:00')
Run the code above in your browser using DataLab