get.date.range: Make string with range of dates (eg. for calibration...

View source: R/English-months-function.R

get.date.rangeR Documentation

Make string with range of dates (eg. for calibration certificates)

Description

Compute the range of dates and present results using English months, like "January 01, 2020 – January 31, 2020". If there is only one date, then the output will be something like "January 01, 2020 (one day only)". See also: dayno.calc conv.ref.date dayno.clock.reversed dayno.clock English.months

Example:

get.date.range(x="31-01-2020")

get.date.range(x=c("01-01-2020","01-01-2020"))

get.date.range(x=c("01-01-2020","31-01-2020"))

Usage

get.date.range(x=c("01-01-2020","31-01-2020"))

Arguments

x

vector with dates in the format "31-01-2020".

Value

string with human readable text.

Author(s)

Claus E. Andersen


claus-e-andersen/clanTools documentation built on Nov. 30, 2024, 11:06 p.m.