pothios
asked on
Time Stamp help please :(
hi, yesterday i manage to solve my timestamp problem but it seems like its not working again :/
i keep getting 43672 for the diff :(
i keep getting 43672 for the diff :(
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;
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
@anmalaver
Ignore my comment, I misread you comment. Sorry for that.
:)
Ignore my comment, I misread you comment. Sorry for that.
:)
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The reason being the above code is working absolutely fine for me.
Thanks