ABAP Keyword Documentation → ABAP - Reference → Processing Internal Data → Date and Time Processing → Time Stamp
System Class for Time Stamps
The class CL_ABAP_TSTMP is used to calculate and convert time stamps. Important methods include:
- The method ADD or SUBTRACTSECS adds or subtracts seconds from time stamps.
- The method TD_SUBTRACT calculates the difference between two time stamps.
- The method MOVE converts the long form of time stamps to the short form, and back, avoiding unwanted rounding effects.
- The methods TSTMP2SECS and SECS2TSTMP convert time stamps to durations and back.