Your question is rather vague, but I will try to answer it anyway.
Milliseconds are usually represented using type values long. It is impossible to give meaning to longrepresent infinity. However, it Long.MAX_VALUEis 9223372036854775807, which, if interpreted as milliseconds, corresponds to 292471208 yeas . Perhaps this is long enough for you? :-)
source
share