Skip to contents

The following integer constants may make code clearer.

ConstantValueMeaning
valid_years_start1000LThe first calendar year for a datey
valid_years_end3000LThe final valid calendar year for a datey (noting that only the start of this year is valid)
valid_duration_years_max2000LThe maximum valid duration in years for a durationy

Usage

valid_years_start

valid_years_end

valid_duration_years_max

See also

Examples

  datey(valid_years_start - 0.001, strict = FALSE)
#> [1] <NA>
  datey(valid_years_start)
#> [1] 1000-01-01.0
  datey(valid_years_end)
#> [1] 3000-01-01.0
  datey(valid_years_end + 0.001, strict = FALSE)
#> [1] <NA>
  durationy(-(valid_duration_years_max + 0.001), strict = FALSE)
#> [1] <NA>