str_dt_dttm: Get Best Parsing Type for a Date String

Description Usage Arguments Value

View source: R/class-date_tbl.R

Description

str_dt_dttm() returns "date" if the string can be parsed as a Date and contains no time information. It returns "datetime" if the string can be parsed as a datetime and contains time information. Otherwise, it returns NA_character_.

Usage

1

Arguments

date

A potential date encoded as a string

Value

"date", "datetime", or NA_character_


jesse-smith/covidprod documentation built on Oct. 11, 2021, 5:34 p.m.