parse_dttm_fmt_ {sdtm.oak}R Documentation

Parse a date/time format

Description

parse_dttm_fmt() parses a date/time formats, meaning it will try to parse the components of the format fmt that refer to date/time components. parse_dttm_fmt_() is similar to parse_dttm_fmt() but is not vectorized over fmt.

Usage

parse_dttm_fmt_(fmt, pattern)

parse_dttm_fmt(fmt, patterns = fmt_cmp())

Arguments

fmt

A format string (scalar) to be parsed by patterns.

pattern, patterns

A string (in the case of pattern), or a character vector (in the case of patterns) of regexps for each of the individual date/time components. Default value is that of fmt_cmp(). Use this function if you plan on passing a different set of patterns.

Value

A tibble of seven columns:

Each row is for either a date/time format component or a "delimiter" string or pattern in-between format components.


[Package sdtm.oak version 0.1.0 Index]