civil-components: Calendar year, month, and day of a day count

getYearR Documentation

Calendar year, month, and day of a day count

Description

A fractional day count is floored to the day that contains it; see as_whole_days().

Usage

getYear(days)

getMonth(days)

getDay(days)

Arguments

days

numeric vector of days since 1970-01-01.

Value

integer vector.

Examples

getYear(18500); getMonth(18500); getDay(18500)

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