Generating a large period works as expected:
seconds(2^31 + c(-2:2))
# [1] "2147483646S" "2147483647S" "2147483648S" "2147483649S" "2147483650S"
Adding large numbers to a POSIXt works as expected:
origin + 2^31 + c(-2:2)
# [1] "2038-01-19 03:14:06 UTC" "2038-01-19 03:14:07 UTC"
# [3] "2038-01-19 03:14:08 UTC" "2038-01-19 03:14:09 UTC"
# [5] "2038-01-19 03:14:10 UTC"
adding a large period onto a POSIXt overflows with no warning:
origin + seconds(2^31 + c(-2:2))
# [1] "2038-01-19 03:14:06 UTC" "2038-01-19 03:14:07 UTC"
# [3] "1901-12-13 20:45:52 UTC" "1901-12-13 20:45:52 UTC"
# [5] "1901-12-13 20:45:52 UTC"
Generating a large period works as expected:
Adding large numbers to a POSIXt works as expected:
adding a large period onto a POSIXt overflows with no warning: