getInDateFormat: Convert a day count back to a yyyymmdd date

View source: R/time.R

getInDateFormatR Documentation

Convert a day count back to a yyyymmdd date

Description

The inverse of getInDays(): turns whole days since 1970-01-01 back into a calendar date written as yyyymmdd.

Usage

getInDateFormat(days)

Arguments

days

numeric vector of days since 1970-01-01.

Details

A fractional day count is first floored to the whole day that contains it (see as_whole_days()), so the result is always a real date.

Value

integer vector of yyyymmdd dates.

See Also

getInDays() for the inverse.

Examples

getInDateFormat(18500)
18500 |> getInDateFormat()

MicSim documentation built on Dec. 2, 2026, 1:09 a.m.