Advertisement

05.29.2008 at 07:06AM PDT, ID: 23441403
[x]
Attachment Details

Time Stamp help please :(

Asked by pothios in Java Programming Language

Tags: java

hi, yesterday i manage to solve my timestamp problem but it seems like its not working again :/
i keep getting 43672 for the diff :(
Start Free Trial
1:
2:
3:
4:
5:
6:
Timestamp convertedDate = new java.sql.Timestamp(tmgr.getRecordDate(sql).getTime());
long diff;
java.util.Date now;
now = new java.util.Date();
diff = now.getTime() - convertedDate.getTime(); // difference in milliseconds
diff = diff / 1000; // difference in seconds;
 
 
[+][-]05.29.2008 at 07:17AM PDT, ID: 21669309

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Java Programming Language
Tags: java
Sign Up Now!
Solution Provided By: humanonomics
Participating Experts: 3
Solution Grade: A
 
 
[+][-]05.29.2008 at 07:19AM PDT, ID: 21669327

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.29.2008 at 07:25AM PDT, ID: 21669377

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.29.2008 at 07:26AM PDT, ID: 21669385

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.29.2008 at 08:49AM PDT, ID: 21670266

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628