check_date_format: Check if the date can be parsed to a datetime object in R

View source: R/parse_period.R

check_date_formatR Documentation

Check if the date can be parsed to a datetime object in R

Description

if the date is already a datetime object ("POSIXct" "POSIXt"), the object itself is returned

Usage

check_date_format(datetime)

Arguments

datetime

string representation of the date

Value

POSIXct date-time object is date is valid representation


ropensci/wateRinfo documentation built on July 12, 2022, 12:11 p.m.