I am developing an appplication in which i need timestamp.I have two arrays with string objects containing hours,minutes and seconds and i need to subtract those and put them in third arrays as hours,minutes and seconds as three objects.
example:
arr1=[9,10,22]
arr2=[10,12,42];
so the answer should be
arr3=[1,2,22]
and i need to put this array objects in a string separated by ' :'
Kindly help.
try this: