SAP® Documentation

Single view

CL_ABAP_TSTMP - Arithmetic and Conversion for Time Stamps

General Data in Customer Master   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This class provides functions for arithmetic with time stamps in ABAP.

For more information about time stamps in ABAP, see: Time Stamps

Relationships

Example

CLASS CL_ABAP_TSTMP DEFINITION LOAD.
DATA tstmp1 TYPE TZNTSTMPL.
DATA tstmp2 TYPE TZNTSTMPL.
DATA secs TYPE I.

GET TIME STAMP FIELD tstmp1.
tstmp2 = CL_ABAP_TSTMP=>ADD( tstmp = tstmp1 secs = 86400 ).
secs = CL_ABAP_TSTMP=>SUBTRACT( tstmp1 = tstmp2 tstmp2 = tstmp1 ).

WRITE: / 'Time stamp difference is', secs, 'seconds.'.

Notes

Further information is available for the individual class methods.

Further information

Time Stamps






ROGBILLS - Synchronize billing plans   General Material Data  
This documentation is copyright by SAP AG.

Length: 986 Date: 20190617 Time: 083747     sap01-206 ( 3 ms )

Our Service

Looking for Support? Questions?

The

Consolut

Callback-Service

Leave us your contact details and we will call you back. Panels marked with * are mandatory.