SAP CL_ABAP_TSTMP OO Class - Arithmetic and Conversion for Time Stamps
CL_ABAP_TSTMP is a standard SAP object class available within R/3 SAP systems depending on your version and release level. You can view/maintain the class details by entering its name into the relevant SAP transactions such as SE24, SE80 or even SE84. Below is the documentation available for class CL_ABAP_TSTMP including details of:
- Interface class implementations
- Inheritance details
- Methods defined within class ( including link to full details )
- Attributes ( including initial values )
- Class Events
Method list of CL_ABAP_TSTMP SAP class
A method is a coding block that performs a certain procedure (i.e. ABAP functionality) on an object within the overall SAP class. In simple terms if the object is an SAP database table a method could be the procedure to add a record or to delete a record. If you are new to OO in many respects, the implementation of a method is similar to a function module and can be called in a very similar way using CALL METHOD.
Instead of "CALL FUNCTION", Methods are referenced using the following syntax: CALL METHOD =>methodname EXPORTING/IMPORTING...
| Method Name | Description | Visability |
| ADD | Addition of Duration in Seconds to Time Stamp | Public |
| CALL METHOD cl_abap_tstmp=>ADD...more details | ||
| ADD_TO_SHORT | Like 'ADD' but returns short time stamp | Public |
| CALL METHOD cl_abap_tstmp=>ADD_TO_SHORT...more details | ||
| CLASS_CONSTRUCTOR | CLASS_CONSTRUCTOR | Public |
| CALL METHOD cl_abap_tstmp=>CLASS_CONSTRUCTOR...more details | ||
| COMPARE | ONLY FOR PROGRAMS WITHOUT FIXED POINT ARITHMETIC FLAG | Public |
| CALL METHOD cl_abap_tstmp=>COMPARE...more details | ||
| GET_START_OF_DOUBLEDHOUR | Private | |
| CALL METHOD cl_abap_tstmp=>GET_START_OF_DOUBLEDHOUR...more details | ||
| GET_SYSTEM_TIMEZONE | Returns system time zone | Public |
| CALL METHOD cl_abap_tstmp=>GET_SYSTEM_TIMEZONE...more details | ||
|
| ||
| ISDOUBLEINTERVAL | Check Against Period of Daylight Saving Time | Public |
| CALL METHOD cl_abap_tstmp=>ISDOUBLEINTERVAL...more details | ||
| ISDOUBLEINTERVAL_TZONE | Like ISDOUBLEINTERVAL but With Time Zone | Public |
| CALL METHOD cl_abap_tstmp=>ISDOUBLEINTERVAL_TZONE...more details | ||
| MAKE_VALID_TIME | Convert date/time from the missing hour | Public |
| CALL METHOD cl_abap_tstmp=>MAKE_VALID_TIME...more details | ||
| MOVE | Converts UTC Time Stamps | Public |
| CALL METHOD cl_abap_tstmp=>MOVE...more details | ||
| MOVE_TO_SHORT | Converts to a short UTC time stamp | Public |
| CALL METHOD cl_abap_tstmp=>MOVE_TO_SHORT...more details | ||
| NORMALIZE | Normalizes Time Stamp | Public |
| CALL METHOD cl_abap_tstmp=>NORMALIZE...more details | ||
| SECS2TSTMP | Conversion: Duration in Seconds after Time Stamp | Private |
| CALL METHOD cl_abap_tstmp=>SECS2TSTMP...more details | ||
| SUBTRACT | Subtraction of Two Time Stamps | Public |
| CALL METHOD cl_abap_tstmp=>SUBTRACT...more details | ||
| SUBTRACTSECS | Subtraction of Duration in Seconds of Time Stamp | Public |
| CALL METHOD cl_abap_tstmp=>SUBTRACTSECS...more details | ||
| SUBTRACTSECS_TO_SHORT | Like 'SUBTRACTSECS' but returns short time stamp | Public |
| CALL METHOD cl_abap_tstmp=>SUBTRACTSECS_TO_SHORT...more details | ||
| SYSTEMTSTMP_LOC2SYST | Conversion: Local Time in 'Continuous System Time' | Public |
| CALL METHOD cl_abap_tstmp=>SYSTEMTSTMP_LOC2SYST...more details | ||
| SYSTEMTSTMP_SYST2LOC | Conversion: 'Continuous System Time' in Local Time | Public |
| CALL METHOD cl_abap_tstmp=>SYSTEMTSTMP_SYST2LOC...more details | ||
| SYSTEMTSTMP_SYST2UTC | Conversion: 'Continuous System Time' in UTC Time | Public |
| CALL METHOD cl_abap_tstmp=>SYSTEMTSTMP_SYST2UTC...more details | ||
| SYSTEMTSTMP_UTC2SYST | Conversion: 'UTC Time in Continuous System Time' | Public |
| CALL METHOD cl_abap_tstmp=>SYSTEMTSTMP_UTC2SYST...more details | ||
| TD_ADD | Addition of Duration in Seconds to Date/Time Pair | Public |
| CALL METHOD cl_abap_tstmp=>TD_ADD...more details | ||
| TD_NORMALIZE | Normalizes Local Time Stamp (Date/Time Pairs) | Public |
| CALL METHOD cl_abap_tstmp=>TD_NORMALIZE...more details | ||
| TD_SUBTRACT | Substraction of Two Date/Time Pairs | Public |
| CALL METHOD cl_abap_tstmp=>TD_SUBTRACT...more details | ||
| TIMET_TO_TSTMP | Converts operating system time stamp to ABAP time stamp | Public |
| CALL METHOD cl_abap_tstmp=>TIMET_TO_TSTMP...more details | ||
| TSTMP2SECS | Conversion: Time Stamp by Duration in Seconds | Private |
| CALL METHOD cl_abap_tstmp=>TSTMP2SECS...more details | ||
| TSTMP2UTCLONG | Converts time stamp from type TIMESTAMP(L) to type UTCLONG | Public |
| CALL METHOD cl_abap_tstmp=>TSTMP2UTCLONG...more details | ||
| UTCLONG2TSTMP | Converts type UTCLONG to TIMESTAMPL (long time stamp) | Public |
| CALL METHOD cl_abap_tstmp=>UTCLONG2TSTMP...more details | ||
| UTCLONG2TSTMP_SHORT | Converts type UTCLONG to TIMESTAMP (short time stamp) | Public |
| CALL METHOD cl_abap_tstmp=>UTCLONG2TSTMP_SHORT...more details | ||
CL_ABAP_TSTMP attributes
List of attributes within class CL_ABAP_CHAR_UTILITIES. These can be referenced using the following syntax CL_ABAP_CHAR_UTILITIES=>. Although depending on where you are inserting the ABAP code you do need to check if the attribute is public or private.
| Name | Level | Description | Initial Value | Type | Visability |
| MAXSECS | Constant | Maximum Duration (Number of Seconds) | '315538070399.9999999' | LIKE TZNTSTMPL | Private |
| MINSECS | Constant | Minimum Duration (Number of Seconds) | '-315538070399.9999999' | LIKE TZNTSTMPL | Private |
| M_SYSTEM_TZONE | Instance Attribute | LIKE | Private | ||
| OP_MODE_BEFORE | Instance Attribute | LIKE | Private | ||
| OP_MODE_NEXT | Instance Attribute | LIKE | Private | ||
| OP_MODE_WALLCLOCK | Instance Attribute | LIKE | Private | ||
| SECSOFDAY | Constant | Number of Seconds in a Day | 86400 | LIKE I | Private |
| SYSTEM_TZONE | Static Attribute | System Time Zone for TTZCU | LIKE TZNZONE | Private | |
| UNIX_ZERO | Constant | UTC time stamp for UNIX time_t = 0 | 19700101000000 | LIKE TIMESTAMP | Public |
CL_ABAP_TSTMP types
OPERATION_MODE -Links to Related Class(s)
CL_ABAP_...Full list of available SAP object classes
Search for further information about these or an SAP related objects