Time Difference Please help

I want to take the current date/time and save it into a Timestamp database field
After sometime (depent on the user)
I do the the same thing (take the current date/time and save it into a Timestamp database field)
and after i subtract the last timestamp from the 1st and take the difference in minutes.
I would prefer a sample code
although any help is appreciated!

This is easy enough that I'll let you code it. Use the getTime() method of java.sql.TimeStamp. This returns a long value. Subtract the later from the earlier, divide by 60000 ( # of milliseconds in a minute) and you have you answer.
Details left to you.
Cheers
DB

Similar Messages

Maybe you are looking for

  • How to use ActionForm validate() method in ADF/Struts project

    Hi We are developing a project using ADF/Struts. We are not planning to use entity level validation. Rather we prefer to have it at Struts Form Bean level. So we need to have validate() method in Form Bean. That mean we need to have seperate bean for

  • Problem while printing in smartforms

    Hi, My Login language is AR and i m trying to print English on the smart form. The string I am trying to print is "JOANNOU & PARASKEVAIDES  (OVERSEAS)  LTD." which is stored in company address details. But in smart form it is printing like ".OVERSEAS

  • OID Users what DB table are they stored in

    Ive just loaded 400+ users from AD into OID, what database table are these users stored in as I need to assign these users to a portal group and I dont want to do it manually. If I manually modify the password in oiddas for the migrated user then the

  • Reg archiving to the SAP DMS server

    Hi All I have a requirement, I am building an RFC for the PORTAL backend. Currently the front end is generating the PDF for the vendor master. They will be sending the PDF as an XSTRING fromate to my BACKEND RFC. Then i need to convert this XSTRING t

  • Error on double click of a cell in ALV Grid

    Hi Experts! I have an ALV grid displaying a report. When I doulble click in one of the cells, it gives me the error below: Runtime Errors         PERFORM_NOT_FOUND                                               Except.                CX_SY_DYN_CALL_IL