dateIso: Transform Dates into ISO 8601 format, either datetime or...

View source: R/helpers_func.R

dateIsoR Documentation

Transform Dates into ISO 8601 format, either datetime or interval

Description

'dateIso()' is a function used to Used in func: make_temporal

Usage

dateIso(d1, d2 = NA, simplify = TRUE, format_date = NA, sep_interval = NA)

Arguments

d1

a character string corresponding to the beginning date of an interval. Must be be "YYYY", "YYYY-MM", or "YYYY-MM-DD".

d2

an optional character string corresponding to the ending date of an interval. Must be be "YYYY", "YYYY-MM", or "YYYY-MM-DD".

simplify

logical indicating if iso8601 format should be "YYYY-MM-DD" even if the month and day are not provided (set to "01" by default)

format_date

a character vector of date-time formats

sep_interval

a character, indicating the interval between begin and end date

Value

a character object formatted according to ISO 8601


fja062/WLDM.standardisation documentation built on Jan. 3, 2023, 11:23 a.m.