i think this question might be duplicate,but from so many time i am searching the solution of this issue and not getting satified result.my problem is i want to find a time interval between two dates in secound.for that i am having time stamp value,i am able to convert time stamp to date like below
Date newDate = new Date();
newDate.setTime(Long.parseLong("-978307200")*1000L);
and i am getting such date after converting timestamp to date
Sun Jan 01 05:30:00 GMT+05:30 1939
my problem is i want to find time interval in secound between this date and year 1970,so any date which is less than 1970 for that i want to count time interval in secound.
it will be my pleasure if any one can help to solve this issue
thanks in advance Aamirkhan I.