In db2, date and time are stored in the datatype TIMESTAMP ...
By default, in DB2, when you subtract two timestamp values, the output is in yyddmmhhss ... You can use the function TIMESTAMPDIFF to get the difference in terms of seconds, mins etc. Have a look at the SQL Reference
Cheers
Sathyaram