timeUnits {ThomasJeffersonUniv}R Documentation

Additional Time Units 'months' and 'years'

Description

To support additional time units 'months' and 'years' for difftime object.

Usage

timeUnits()

Details

Every 4 years has ⁠1461(=365*4+1)⁠ days, or ⁠48(=4*12)⁠ months. Therefore, every month has ⁠30.44(=1461/48)⁠ days, or ⁠4.35(=1461/48/7)⁠ weeks.

Every year has 12 months.

Value

Function timeUnits returns a named constant character vector.

Note

Function units<-.difftime only supports 'secs', 'mins', 'hours', 'days', 'weeks'.


[Package ThomasJeffersonUniv version 0.1.2 Index]