Skip to contents

Parse DTC variable and Determine Components

Usage

get_partialdatetime(dtc)

Arguments

dtc

The '--DTC' date to parse

A character date is expected in a format like yyyy-mm-dd or yyyy-mm-ddThh:mm:ss. Trailing components can be omitted and - is a valid value for any component.

Value

A list of character vectors. The elements of the list are named "year", "month", "day", "hour", "minute", and "second". Missing components are set to NA_character_.

Details

The function can be replaced by the parttime parser once it is available.