Infinity Time value in java?

is it possible to get the time in milliseconds? what did I establish that the time delay value should show the window when the user closes the application? Any ideas?

+3
source share
2 answers

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? :-)

+8
source

, , .MAX_VALUE ? 292471208 ...

+3

Source: https://habr.com/ru/post/1748498/


All Articles