The following integer constants may make code clearer.
| Constant | Value | Meaning |
valid_years_start | 1000L | First valid calendar year for a datey. NB datey(valid_years_start) is not included in all_of_time because intervals do not include their start. |
valid_years_end | 3000L | The final valid calendar year for a datey (noting that only the start of this year is valid). |
valid_duration_years_max | 2000L | The maximum valid duration in years for a durationy. |
Value
Each of these constants is a scalar integer giving one
of the boundaries of the valid datey or durationy range described above.
See also
is_NA, NAs, datey, all_of_time
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)
#> [1] 2000 yr
durationy(valid_duration_years_max + 0.001, strict = FALSE)
#> [1] <NA>