开发者

Infinity Time value in java?

开发者 https://www.devze.com 2023-01-02 00:56 出处:网络
is there any possible to get the infinty time va开发者_如何学运维lue in milliseconds? that is i set that time delay value must be shows the window when the user close the application? any idea? Your q

is there any possible to get the infinty time va开发者_如何学运维lue in milliseconds? that is i set that time delay value must be shows the window when the user close the application? any idea?


Your question is quite vague, but I'll try to answer it anyway.

Milliseconds are usually represented using values of type long. There is no way to let a long value represent infinity. However, the Long.MAX_VALUE equals 9223372036854775807, which, if interpreted as milliseconds, corresponds to 292471208 yeas. Perhaps that's long enough for you? :-)


I'm not sure I completely understand the question, but isn't Long.MAX_VALUE good enough? It is equivalent to 292471208 years...

0

精彩评论

暂无评论...
验证码 换一张
取 消