types.castDatetime: Cast datetime

View source: R/types.castDatetime.R

types.castDatetimeR Documentation

Cast datetime

Description

Cast date with time

Usage

types.castDatetime(format = "%Y-%m-%dT%H:%M:%SZ", value)

Arguments

format

available options are "default", "any", and "<pattern>" where

default

An ISO8601 format string e.g. YYYY-MM-DDThh:mm:ssZ in UTC time

any

As for types.castDate

<pattern>

As for types.castDate

value

datetime to cast

See Also

Types and formats specifications, strptime, DateTimeClasses, parsedate-package and lubridate-package.

Examples


types.castDatetime(format = "default", value = "2014-01-01T06:00:00Z")

types.castDatetime(format = "%d/%m/%y %H:%M", value = "21/11/06 16:30")
 

frictionlessdata/tableschema-r documentation built on Oct. 1, 2022, 11:44 a.m.