ABAP Time Stamp Utility Class

ABAP Provides timestamp utility class CL_ABAP_TSTMP with different methods that can serve various purposes in the calculations.

It provides methods to find out the time difference in seconds between 2 timestamps, to add seconds to a timestamp, to convert a long timestamp format to short timestamp format and many more.

The below post shows few of them.

Let’s find the time difference in seconds between 2 timestamps.

Output-

Here we can add some seconds to a timestamp and convert the long timestamp format to a short timestamp format.

Output-


Leave a Reply