When will System.currentTimeMillis() overflow?
<p>I have a web app which orders stuff using a timestamp, which is just a long. My web app backend happens to be written in java, so I am using:</p>

<pre><code>long timestamp = System.currentTimeMillis();
</code></pre>

<p>what year (approximately) will this fail? I mean at some point, the range of a long is going to overflow, right? We may all be long-dead, but I'm just curious. Will it be like y2k all over again? What can I do to prepare for this? Ridiculous, I know, just curious!</p>

<p>Thanks</p>
