SAP ABAP Class CL_ABAP_TSTMP (Arithmetic and Conversion for Time Stamps)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷ BC-ABA-LA (Application Component) Syntax, Compiler, Runtime
⤷ SABP_CONVERT (Package) Conversion of Time Specifications
⤷ BC-ABA-LA (Application Component) Syntax, Compiler, Runtime
⤷ SABP_CONVERT (Package) Conversion of Time Specifications
Properties
Class | CL_ABAP_TSTMP | |
Short Description | Arithmetic and Conversion for Time Stamps | |
Super Class | ||
Instantiability of a Class | 2 | Public |
Final |
General Data
Message Class | ||
Program status | S | System Program |
Category | 0 | |
Package | SABP_CONVERT | Conversion of Time Specifications |
Created | 20011025 | SAP |
Last change | 20130531 | SAP |
Shared Memory-enabled | ||
Fixed point arithmetic | ||
Unicode checks active |
Forward declarations
Class CL_ABAP_TSTMP has no forward declaration.
Interfaces
Class CL_ABAP_TSTMP has no interface implemented.
Friends
Class CL_ABAP_TSTMP has no friend class.
Attributes
# | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | MAXSECS | Constant | Private | Type reference (TYPE) | TZNTSTMPL | '315538070399.9999999' | Maximum Duration (Number of Seconds) | 20011106 | |
2 | MINSECS | Constant | Private | Type reference (TYPE) | TZNTSTMPL | '-315538070399.9999999' | Minimum Duration (Number of Seconds) | 20011106 | |
3 | OP_MODE_BEFORE | Constant | Public | Type reference (TYPE) | OPERATION_MODE | 'B' | 20101021 | ||
4 | OP_MODE_NEXT | Constant | Public | Type reference (TYPE) | OPERATION_MODE | 'N' | 20101021 | ||
5 | OP_MODE_WALLCLOCK | Constant | Public | Type reference (TYPE) | OPERATION_MODE | 'W' | 20101021 | ||
6 | SECSOFDAY | Constant | Private | Type reference (TYPE) | I | 86400 | Number of Seconds in a Day | 20011106 | |
7 | SYSTEM_TZONE | Static Attribute | Private | Type reference (TYPE) | TZNZONE | System Time Zone for TTZCU | 20040913 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | ADD | Static method | Public | Method | Addition of Duration in Seconds to Time Stamp | 20011025 |
2 | CLASS_CONSTRUCTOR | Static method | Public | Constructor | CLASS_CONSTRUCTOR | 20040913 |
3 | COMPARE | Static method | Public | Method | ONLY FOR PROGRAMS WITHOUT FIXED POINT ARITHMETIC FLAG | 20011106 |
4 | GET_START_OF_DOUBLEDHOUR | Static method | Private | Method | 20040913 | |
5 | ISDOUBLEINTERVAL | Static method | Public | Method | Check Against Period of Daylight Saving Time | 20020503 |
6 | ISDOUBLEINTERVAL_TZONE | Static method | Public | Method | Like ISDOUBLEINTERVAL but With Time Zone | 20081015 |
7 | MAKE_VALID_TIME | Static method | Public | Method | Convert date/time from the missing hour | 20101021 |
8 | MOVE | Static method | Public | Method | Converts UTC Time Stamps | 20081015 |
9 | NORMALIZE | Static method | Public | Method | Normalizes Time Stamp | 20031007 |
10 | SECS2TSTMP | Static method | Private | Method | Conversion: Duration in Seconds after Time Stamp | 20011106 |
11 | SUBTRACT | Static method | Public | Method | Subtraction of Two Time Stamps | 20011025 |
12 | SUBTRACTSECS | Static method | Public | Method | Subtraction of Duration in Seconds of Time Stamp | 20011106 |
13 | SYSTEMTSTMP_LOC2SYST | Static method | Public | Method | Conversion: Local Time in "Continuous System Time" | 20020503 |
14 | SYSTEMTSTMP_SYST2LOC | Static method | Public | Method | Conversion: "Continuous System Time" in Local Time | 20020503 |
15 | SYSTEMTSTMP_SYST2UTC | Static method | Public | Method | Conversion: "Continuous System Time" in UTC Time | 20020604 |
16 | SYSTEMTSTMP_UTC2SYST | Static method | Public | Method | Conversion: "UTC Time in Continuous System Time" | 20020604 |
17 | TD_ADD | Static method | Public | Method | Addition of Duration in Seconds to Date/Time Pair | 20020503 |
18 | TD_NORMALIZE | Static method | Public | Method | Normalizes Local Time Stamp (Date/Time Pairs) | 20031007 |
19 | TD_SUBTRACT | Static method | Public | Method | Substraction of Two Date/Time Pairs | 20020503 |
20 | TSTMP2SECS | Static method | Private | Method | Conversion: Time Stamp by Duration in Seconds | 20011106 |
Events
Class CL_ABAP_TSTMP has no event.
Types
# | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
---|---|---|---|---|---|---|---|
1 | OPERATION_MODE | Public | See coding | 20101021 | operation_mode type c length 1
|
Method Signatures
Method ADD Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | R_TSTMP | Value transfer | Type reference (TYPE) | TZNTSTMPL | UTC-Zeitstempel | 20011025 | ||
2 | Importing | SECS | Call by reference | Type reference (TYPE) | NUMERIC | Zeitspanne in Sekunden | 20011106 | ||
3 | Importing | TSTMP | Call by reference | Type reference (TYPE) | P | UTC-Zeitstempel | 20011025 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_PARAMETER_INVALID_RANGE | Parameter mit ungültigem Wertebereich | 20011105 | |
2 | CX_PARAMETER_INVALID_TYPE | Parameter mit ungültigem Typ | 20011105 |
Method CLASS_CONSTRUCTOR Signature
Method CLASS_CONSTRUCTOR on class CL_ABAP_TSTMP has no parameter.
Method CLASS_CONSTRUCTOR on class CL_ABAP_TSTMP has no exception.
Method COMPARE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | COMP | Value transfer | Type reference (TYPE) | I | Ergebnis: kleiner (-1), gleich(0), größer (1) | 20011106 | ||
2 | Importing | TSTMP1 | Call by reference | Type reference (TYPE) | P | UTC-Zeitstempel | 20011106 | ||
3 | Importing | TSTMP2 | Call by reference | Type reference (TYPE) | P | UTC-Zeitstempel | 20011106 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_PARAMETER_INVALID_RANGE | Parameter mit ungültigem Wertebereich | 20011106 | |
2 | CX_PARAMETER_INVALID_TYPE | Parameter mit ungültigem Typ | 20011106 |
Method GET_START_OF_DOUBLEDHOUR Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | DATE | Call by reference | Type reference (TYPE) | D | 20040913 | |||
2 | Exporting | START_DATE | Call by reference | Type reference (TYPE) | D | erster innerhalb doppelter Stunde | 20040913 | ||
3 | Exporting | START_TIME | Call by reference | Type reference (TYPE) | T | erster innerhalb doppelter Stunde | 20040913 | ||
4 | Importing | TIME | Call by reference | Type reference (TYPE) | T | 20040913 |
Method GET_START_OF_DOUBLEDHOUR on class CL_ABAP_TSTMP has no exception.
Method ISDOUBLEINTERVAL Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | DATE | Call by reference | Type reference (TYPE) | D | 20020503 | |||
2 | Returning | ISDOUBLEINTERVAL | Value transfer | Type reference (TYPE) | FLAG | Datum und Zeit, Sommerzeitflag | 20020503 | ||
3 | Importing | TIME | Call by reference | Type reference (TYPE) | T | 20020503 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_PARAMETER_INVALID_RANGE | Parameter mit ungültigem Wertebereich | 20020506 | |
2 | CX_PARAMETER_INVALID_TYPE | Parameter mit ungültigem Typ | 20020506 |
Method ISDOUBLEINTERVAL_TZONE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | DATE | Call by reference | Type reference (TYPE) | D | 20081015 | |||
2 | Returning | ISDOUBLEINTERVAL | Value transfer | Type reference (TYPE) | FLAG | allgemeines flag | 20081015 | ||
3 | Importing | TIME | Call by reference | Type reference (TYPE) | T | 20081015 | |||
4 | Importing | TZONE | Call by reference | Type reference (TYPE) | TZNZONE | Zeitzone | 20081015 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_PARAMETER_INVALID_RANGE | Parameter mit ungültigem Wertebereich | 20081015 | |
2 | CX_PARAMETER_INVALID_TYPE | Parameter mit ungültigem Typ | 20081015 |
Method MAKE_VALID_TIME Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | DATE_IN | Value transfer | Type reference (TYPE) | D | 20101021 | |||
2 | Exporting | DATE_VALID | Call by reference | Type reference (TYPE) | D | 20101021 | |||
3 | Importing | MODE | Call by reference | Type reference (TYPE) | OPERATION_MODE | OP_MODE_WALLCLOCK | 20101021 | ||
4 | Importing | TIME_IN | Value transfer | Type reference (TYPE) | T | 20101021 | |||
5 | Exporting | TIME_VALID | Call by reference | Type reference (TYPE) | T | 20101021 | |||
6 | Importing | TIME_ZONE | Call by reference | Type reference (TYPE) | TZNZONE | Zeitzone | 20101021 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_PARAMETER_INVALID_RANGE | Parameter mit ungültigem Wertebereich | 20101021 | |
2 | CX_TSTMP_INTERNAL_ERROR | Fehler bei Berechnung eines Zeitstempels | 20101021 |
Method MOVE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | TSTMP_SRC | Call by reference | Type reference (TYPE) | P | UTC-Zeitstempel: Quelle | 20081015 | ||
2 | Exporting | TSTMP_TGT | Call by reference | Type reference (TYPE) | P | UTC-Zeitstempel: Ziel | 20081015 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_PARAMETER_INVALID_RANGE | Parameter mit ungültigem Wertebereich | 20081015 | |
2 | CX_PARAMETER_INVALID_TYPE | Parameter mit ungültigem Typ | 20081015 |
Method NORMALIZE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | TSTMP_IN | Value transfer | Type reference (TYPE) | P | 20031007 | |||
2 | Returning | TSTMP_OUT | Value transfer | Type reference (TYPE) | TZNTSTMPL | 20031007 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_PARAMETER_INVALID_RANGE | Parameter mit ungültigem Wertebereich | 20031007 | |
2 | CX_PARAMETER_INVALID_TYPE | Parameter mit ungültigem Typ | 20031007 |
Method SECS2TSTMP Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | SECS | Call by reference | Type reference (TYPE) | NUMERIC | Zeitspanne in Sekunden (ab 01.01.0001 00:00:00) | 20011106 | ||
2 | Returning | TSTMP | Value transfer | Type reference (TYPE) | TZNTSTMPL | UTC-Zeitstempel | 20011106 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_PARAMETER_INVALID_RANGE | Parameter mit ungültigem Wertebereich | 20011106 |
Method SUBTRACT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | R_SECS | Value transfer | Type reference (TYPE) | TZNTSTMPL | Zeitspanne in Sekunden | 20011106 | ||
2 | Importing | TSTMP1 | Call by reference | Type reference (TYPE) | P | UTC-Zeitstempel | 20011025 | ||
3 | Importing | TSTMP2 | Call by reference | Type reference (TYPE) | P | UTC-Zeitstempel | 20011025 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_PARAMETER_INVALID_RANGE | Parameter mit ungültigem Wertebereich | 20011105 | |
2 | CX_PARAMETER_INVALID_TYPE | Parameter mit ungültigem Typ | 20011105 |
Method SUBTRACTSECS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | R_TSTMP | Value transfer | Type reference (TYPE) | TZNTSTMPL | UTC-Zeitstempel | 20011106 | ||
2 | Importing | SECS | Call by reference | Type reference (TYPE) | NUMERIC | Zeitspanne in Sekunden | 20011106 | ||
3 | Importing | TSTMP | Call by reference | Type reference (TYPE) | P | UTC-Zeitstempel | 20011106 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_PARAMETER_INVALID_RANGE | Parameter mit ungültigem Wertebereich | 20011106 | |
2 | CX_PARAMETER_INVALID_TYPE | Parameter mit ungültigem Typ | 20011106 |
Method SYSTEMTSTMP_LOC2SYST Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | LOC_DATE | Call by reference | Type reference (TYPE) | D | 20020505 | |||
2 | Importing | LOC_DST | Call by reference | Type reference (TYPE) | FLAG | allgemeines flag | 20020505 | ||
3 | Importing | LOC_TIME | Call by reference | Type reference (TYPE) | T | 20020505 | |||
4 | Exporting | SYST_DATE | Call by reference | Type reference (TYPE) | D | 20020505 | |||
5 | Exporting | SYST_TIME | Call by reference | Type reference (TYPE) | T | 20020505 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_PARAMETER_INVALID_RANGE | Parameter mit ungültigem Wertebereich | 20020506 | |
2 | CX_PARAMETER_INVALID_TYPE | Parameter mit ungültigem Typ | 20020506 |
Method SYSTEMTSTMP_SYST2LOC Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | LOC_DATE | Call by reference | Type reference (TYPE) | D | 20020505 | |||
2 | Exporting | LOC_DST | Call by reference | Type reference (TYPE) | FLAG | allgemeines flag | 20020505 | ||
3 | Exporting | LOC_TIME | Call by reference | Type reference (TYPE) | T | 20020505 | |||
4 | Importing | SYST_DATE | Call by reference | Type reference (TYPE) | D | 20020505 | |||
5 | Importing | SYST_TIME | Call by reference | Type reference (TYPE) | T | 20020505 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_PARAMETER_INVALID_RANGE | Parameter mit ungültigem Wertebereich | 20020506 | |
2 | CX_PARAMETER_INVALID_TYPE | Parameter mit ungültigem Typ | 20020506 |
Method SYSTEMTSTMP_SYST2UTC Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | SYST_DATE | Call by reference | Type reference (TYPE) | D | 20020604 | |||
2 | Importing | SYST_TIME | Call by reference | Type reference (TYPE) | T | 20020604 | |||
3 | Exporting | UTC_TSTMP | Call by reference | Type reference (TYPE) | TIMESTAMP | UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) | 20020604 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_PARAMETER_INVALID_RANGE | Parameter mit ungültigem Wertebereich | 20020606 |
Method SYSTEMTSTMP_UTC2SYST Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | SYST_DATE | Call by reference | Type reference (TYPE) | D | System Datum | 20020604 | ||
2 | Exporting | SYST_TIME | Call by reference | Type reference (TYPE) | T | System Zeit | 20020604 | ||
3 | Importing | UTC_TSTMP | Call by reference | Type reference (TYPE) | TIMESTAMP | UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) | 20020604 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_PARAMETER_INVALID_RANGE | Parameter mit ungültigem Wertebereich | 20020604 |
Method TD_ADD Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | DATE | Call by reference | Type reference (TYPE) | D | 20020505 | |||
2 | Exporting | RES_DATE | Call by reference | Type reference (TYPE) | D | 20020505 | |||
3 | Exporting | RES_TIME | Call by reference | Type reference (TYPE) | T | 20020505 | |||
4 | Importing | SECS | Call by reference | Type reference (TYPE) | NUMERIC | 20020505 | |||
5 | Importing | TIME | Call by reference | Type reference (TYPE) | T | 20020505 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_PARAMETER_INVALID_RANGE | Parameter mit ungültigem Wertebereich | 20020503 | |
2 | CX_PARAMETER_INVALID_TYPE | Parameter mit ungültigem Typ | 20020503 |
Method TD_NORMALIZE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | DATE_IN | Call by reference | Type reference (TYPE) | D | 20031007 | |||
2 | Exporting | DATE_NORM | Call by reference | Type reference (TYPE) | D | 20031007 | |||
3 | Importing | TIME_IN | Call by reference | Type reference (TYPE) | T | 20031007 | |||
4 | Exporting | TIME_NORM | Call by reference | Type reference (TYPE) | T | 20031007 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_PARAMETER_INVALID_RANGE | Parameter mit ungültigem Wertebereich | 20031007 |
Method TD_SUBTRACT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | DATE1 | Call by reference | Type reference (TYPE) | D | 20020505 | |||
2 | Importing | DATE2 | Call by reference | Type reference (TYPE) | D | 20020505 | |||
3 | Exporting | RES_SECS | Call by reference | Type reference (TYPE) | NUMERIC | 20020505 | |||
4 | Importing | TIME1 | Call by reference | Type reference (TYPE) | T | 20020505 | |||
5 | Importing | TIME2 | Call by reference | Type reference (TYPE) | T | 20020505 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_PARAMETER_INVALID_RANGE | Parameter mit ungültigem Wertebereich | 20020503 | |
2 | CX_PARAMETER_INVALID_TYPE | Parameter mit ungültigem Typ | 20020503 |
Method TSTMP2SECS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | SECS | Value transfer | Type reference (TYPE) | TZNTSTMPL | Zeitspanne in Sekunden (ab dem 01.01.0001 00:00:00) | 20011106 | ||
2 | Importing | TSTMP | Call by reference | Type reference (TYPE) | P | UTC-Zeitstempel | 20011106 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_PARAMETER_INVALID_RANGE | Parameter mit ungültigem Wert | 20011106 | |
2 | CX_PARAMETER_INVALID_TYPE | Parameter mit ungültigem Typ | 20011106 |
History
Last changed by/on | SAP | 20130531 |
SAP Release Created in | 620 |