How to get the date from a timeStamp long value?
<p>I tried to compare date and time of two timeStamp long values as follows. </p>

<pre><code>Timestamp st1 = new Timestamp(1313045029);
        Timestamp st = new Timestamp(1313045568);

        System.out.println("Date:"+st.getDate());
        System.out.println("Day:"+st.getDay());
        System.out.println("Year:"+(st.getYear()+1900));
        System.out.println("Month:"+(st.getMonth()+1));
        System.out.println("Hours:"+st.getHours());
        System.out.println("Minutes:"+st.getMinutes());
        System.out.println("Seconds:"+st.getSeconds());
        System.out.println("*********************************");
        System.out.println("Date1:"+st1.getDate());
        System.out.println("Day1:"+st1.getDay());
        System.out.println("Year1:"+(st1.getYear()+1900));
        System.out.println("Month1:"+(st1.getMonth()+1));
        System.out.println("Hours1:"+st1.getHours());
        System.out.println("Minutes1:"+st1.getMinutes());
        System.out.println("Seconds1:"+st1.getSeconds());
</code></pre>

<p>There should be some difference in time, but in the output there is difference at all? Please help. </p>
