VarunSharma
Programmer
Hi,
I have an requirement in program where at start i fetched current time stamp ex. T1 = '2021-28-07-01-12.32.43.123456' and when the program ends in termination para, again fetch the current time stamp ex. T2 = '2021-28-07-01-12.32.43.345678'. My requirement is to calculate the response time which should be Result = T2 - T1 but i need to store the reponse time in milliseconds only in DB2 TIME column.
Issue 1: How can i get the timestamp difference where i can get the milliseconds only.
Issue 2: In case, if some how i can able to get the timestamp difference in milliseonds, then how can i store it in DB2 column. As per my knowledge we have TIME in DB2 which is defined as X(08)?
Any help will be really appreciated!!!
Thanks,
Varun
I have an requirement in program where at start i fetched current time stamp ex. T1 = '2021-28-07-01-12.32.43.123456' and when the program ends in termination para, again fetch the current time stamp ex. T2 = '2021-28-07-01-12.32.43.345678'. My requirement is to calculate the response time which should be Result = T2 - T1 but i need to store the reponse time in milliseconds only in DB2 TIME column.
Issue 1: How can i get the timestamp difference where i can get the milliseconds only.
Issue 2: In case, if some how i can able to get the timestamp difference in milliseonds, then how can i store it in DB2 column. As per my knowledge we have TIME in DB2 which is defined as X(08)?
Any help will be really appreciated!!!
Thanks,
Varun