SAP ABAP Class /MRSS/CL_SGE_ABAP_TSTMP (Calculate with Time Stamps)
Hierarchy
☛
MRSS_NW (Software Component) SAP Multiresource Scheduling for SAP Net
⤷ PM-WOC-MO (Application Component) Maintenance Orders
⤷ /MRSS/SGE (Package) Multiresource Planning: Scheduling Engine
⤷ PM-WOC-MO (Application Component) Maintenance Orders
⤷ /MRSS/SGE (Package) Multiresource Planning: Scheduling Engine
Properties
Class | /MRSS/CL_SGE_ABAP_TSTMP | |
Short Description | Calculate with Time Stamps | |
Super Class | ||
Instantiability of a Class | 2 | Public |
Final |
General Data
Message Class | ||
Program status | ||
Category | 0 | |
Package | /MRSS/SGE | Multiresource Planning: Scheduling Engine |
Created | 20090710 | SAP |
Last change | 20141109 | |
Shared Memory-enabled | ||
Fixed point arithmetic | ||
Unicode checks active |
Forward declarations
Class /MRSS/CL_SGE_ABAP_TSTMP has no forward declaration.
Interfaces
Class /MRSS/CL_SGE_ABAP_TSTMP has no interface implemented.
Friends
Class /MRSS/CL_SGE_ABAP_TSTMP has no friend class.
Attributes
# | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | C_APPL_CLASS | Constant | Public | Type reference (TYPE) | CHAR4 | 'R3NW' | Char 20 | 20110405 | |
2 | C_APPL_GUID | Constant | Public | Type reference (TYPE) | GUID_32 | '00000000000000000000000000000001' | GUID in 'CHAR' Format in Uppercase | 20110405 | |
3 | C_DEV_CLASS | Constant | Public | Type reference (TYPE) | CHAR20 | '/MRSS/RAP' | Char 20 | 20110405 | |
4 | C_SE_BEGTIME | Constant | Public | Type reference (TYPE) | SY-UZEIT | '000000' | Current Time of Application Server | 20110405 | |
5 | C_SE_ENDTIME | Constant | Public | Type reference (TYPE) | SY-UZEIT | '235959' | Current Time of Application Server | 20110405 | |
6 | C_TIMERULE_TYPE | Constant | Public | Type reference (TYPE) | CHAR1 | 'W' | Single-Character Indicator | 20110405 | |
7 | C_WEEKS | Constant | Public | Type reference (TYPE) | CHAR2 | '01' | Single-Character Indicator | 20110405 | |
8 | MAXSECS | Constant | Private | Type reference (TYPE) | TZNTSTMPL | '315538070399.9999999' | Maximum Duration (Number of Seconds) | 20090710 | |
9 | MINSECS | Constant | Private | Type reference (TYPE) | TZNTSTMPL | '-315538070399.9999999' | Minimum Duration (Number of Seconds) | 20090710 | |
10 | SECSOFDAY | Constant | Private | Type reference (TYPE) | I | 86400 | Number of Seconds in a Day | 20090710 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | ADD | Static method | Public | Method | Addition of Duration in Seconds to Time Stamp | 20090710 |
2 | CHECK_DAY_CHANGED | Static method | Public | Method | Check Whether Day Changed | 20090710 |
3 | GET_DATE | Static method | Public | Method | Returns the date of a timestamp | 20110317 |
4 | GET_MONTH_FIRST_LAST | Static method | Public | Method | Get Month First last | 20110405 |
5 | GET_NUM_OF_MONTHS | Static method | Public | Method | Get number of months between two dates | 20110405 |
6 | GET_NUM_OF_WEEKS | Static method | Public | Method | Get number of weeks between two dates | 20110405 |
7 | GET_TIME | Static method | Public | Method | Returns the time of a timestamp | 20110317 |
8 | GET_TIME_INTERVAL | Static method | Public | Method | Get time interval | 20110405 |
9 | GET_TIME_RULE_INTERVAL | Static method | Public | Method | Get list of dates based on input time rule | 20110405 |
10 | GET_TOTAL_BREAK_IN_INTERVAL | Static method | Public | Method | Get Total Duration of Breaks Between Set of Intervals | 20090710 |
11 | GET_TOTAL_DURATION_IN_INTERVAL | Static method | Public | Method | Get the Total Duration Between a Set of Intervals | 20090710 |
12 | MOVE | Static method | Public | Method | Converts UTC Time Stamps | 20110713 |
13 | SECS2TSTMP | Static method | Private | Method | Conversion: Duration in Seconds after Time Stamp | 20090710 |
14 | SUBTRACT | Static method | Public | Method | Subtraction of Two Time Stamps | 20090710 |
15 | SUBTRACTSECS | Static method | Public | Method | Subtraction of Duration in Seconds of Time Stamp | 20090710 |
16 | TSTMP2SECS | Static method | Private | Method | Conversion: Time Stamp by Duration in Seconds | 20090710 |
17 | TSTMP_TO_SECS | Static method | Private | Method | Conversion: Time Stamp in type P by Duration in Seconds | 20120326 |
Events
Class /MRSS/CL_SGE_ABAP_TSTMP has no event.
Types
Class /MRSS/CL_SGE_ABAP_TSTMP has no local type.
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 time stamp in long form (YYYYMMDDhhmmss,mmmuuun) | 20090710 | ||
2 | Importing | SECS | Call by reference | Type reference (TYPE) | INT4 | Natural Number | 20090710 | ||
3 | Importing | TSTMP | Call by reference | Type reference (TYPE) | P | UTC Time Stamp | 20090710 |
Method ADD on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method CHECK_DAY_CHANGED Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IV_NEW | Call by reference | Type reference (TYPE) | TIMESTAMP | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | 20090710 | ||
2 | Importing | IV_REFERENCE | Call by reference | Type reference (TYPE) | TIMESTAMP | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | 20090710 | ||
3 | Returning | RV_CHANGED | Value transfer | Type reference (TYPE) | /MRSS/T_BOOLEAN | Boolean Variable | 20090710 |
Method CHECK_DAY_CHANGED on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method GET_DATE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | TIMESTAMP | UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) | 20110317 | ||
2 | Returning | RV_DATE | Value transfer | Type reference (TYPE) | D | The date you have asked for | 20110317 |
Method GET_DATE on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method GET_MONTH_FIRST_LAST Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | EV_FIRST_DAY | Call by reference | Type reference (TYPE) | SY-DATUM | Current Date of Application Server | 20110405 | ||
2 | Exporting | EV_LAST_DAY | Call by reference | Type reference (TYPE) | SY-DATUM | Current Date of Application Server | 20110405 | ||
3 | Importing | IV_DATE | Call by reference | Type reference (TYPE) | SY-DATUM | Current Date of Application Server | 20110405 | ||
4 | Importing | IV_MONTH | Call by reference | Type reference (TYPE) | NUMC2 | Two digit number | 20110405 | ||
5 | Importing | IV_YEAR | Call by reference | Type reference (TYPE) | NUMC4 | Count parameters | 20110405 |
Method GET_MONTH_FIRST_LAST on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method GET_NUM_OF_MONTHS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | EV_MONTHS | Call by reference | Type reference (TYPE) | INT4 | Natural number | 20110405 | ||
2 | Importing | IV_BEGIN_DATE | Call by reference | Type reference (TYPE) | DATS | Field of type DATS | 20110405 | ||
3 | Importing | IV_END_DATE | Call by reference | Type reference (TYPE) | DATS | Field of type DATS | 20110405 |
Method GET_NUM_OF_MONTHS on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method GET_NUM_OF_WEEKS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | EV_WEEKS | Call by reference | Type reference (TYPE) | INT4 | Natural number | 20110405 | ||
2 | Importing | IV_BEGIN_DATE | Call by reference | Type reference (TYPE) | SCAL-DATE | Date for public holiday and factory calendars | 20110405 | ||
3 | Importing | IV_END_DATE | Call by reference | Type reference (TYPE) | SCAL-DATE | Date for public holiday and factory calendars | 20110405 |
Method GET_NUM_OF_WEEKS on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method GET_TIME Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | TIMESTAMP | UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) | 20110317 | ||
2 | Returning | RV_TIME | Value transfer | Type reference (TYPE) | T | Time you have asked for | 20110317 |
Method GET_TIME on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method GET_TIME_INTERVAL Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | ES_INTERVAL | Call by reference | Type reference (TYPE) | /MRSS/T_TIMESTAMP_INTERVAL | Time Interval | 20110405 | ||
2 | Exporting | ET_INTERVAL | Call by reference | Type reference (TYPE) | /MRSS/T_TIMESTAMP_INTERVAL_TAB | Table with Time Stamp Intervals | 20110405 | ||
3 | Importing | IV_DATE | Call by reference | Type reference (TYPE) | SY-DATUM | Current Date of Application Server | 20110405 | ||
4 | Importing | IV_END_DATE | Call by reference | Type reference (TYPE) | DATS | Field of type DATS | 20110405 | ||
5 | Importing | IV_TIME_ZONE | Call by reference | Type reference (TYPE) | SY-ZONLO | Time Zone of Current User | 20110405 | ||
6 | Importing | IV_VIEW_TYPE | Call by reference | Type reference (TYPE) | /MRSS/T_VIEW_TYPE | View Type | 20110405 |
Method GET_TIME_INTERVAL on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method GET_TIME_RULE_INTERVAL Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | ET_DATES | Call by reference | Type reference (TYPE) | /MRSS/T_RM_DATE_TAB | Time Rule Date Table | 20110405 | ||
2 | Importing | IS_DAY | Call by reference | Type reference (TYPE) | /MRSS/T_RM_DAY | Days of Week | 20110405 | ||
3 | Importing | IV_END_DATE | Call by reference | Type reference (TYPE) | DATS | Field of type DATS | 20110405 | ||
4 | Importing | IV_START_DATE | Call by reference | Type reference (TYPE) | DATS | Field of type DATS | 20110405 |
Method GET_TIME_RULE_INTERVAL on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method GET_TOTAL_BREAK_IN_INTERVAL Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IT_INTERVALS | Call by reference | Type reference (TYPE) | /MRSS/T_SGE_GUID_TSP_INT_TAB | GUIDs with Intervals | 20090710 | ||
2 | Returning | RV_TOTAL_DURATION | Value transfer | Type reference (TYPE) | TZNTSTMPL | UTC Time Stamp in Long Form (YYYYMMDDhhmmss,mmmuuun) | 20090710 |
Method GET_TOTAL_BREAK_IN_INTERVAL on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method GET_TOTAL_DURATION_IN_INTERVAL Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IT_INTERVALS | Call by reference | Type reference (TYPE) | /MRSS/T_SGE_GUID_TSP_INT_TAB | GUIDs with Intervals | 20090710 | ||
2 | Returning | RV_TOTAL_DURATION | Value transfer | Type reference (TYPE) | TZNTSTMPL | UTC Time Stamp in Long Form (YYYYMMDDhhmmss,mmmuuun) | 20090710 |
Method GET_TOTAL_DURATION_IN_INTERVAL on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
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 Time Stamp: Source | 20110713 | ||
2 | Exporting | TSTMP_TGT | Call by reference | Type reference (TYPE) | P | UTC Time Stamp: Target | 20110713 |
Method MOVE on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
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) | P | Time Interval in Seconds (as from 01.01.0001 00:00:00) | 20090710 | ||
2 | Returning | TSTMP | Value transfer | Type reference (TYPE) | TZNTSTMPL | UTC Time Stamp | 20090710 |
Method SECS2TSTMP on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
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 | Time Interval in Seconds | 20090710 | ||
2 | Importing | TSTMP1 | Call by reference | Type reference (TYPE) | P | UTC Time Stamp | 20090710 | ||
3 | Importing | TSTMP2 | Call by reference | Type reference (TYPE) | P | UTC Time Stamp | 20090710 |
Method SUBTRACT on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
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 Time Stamp | 20090710 | ||
2 | Importing | SECS | Call by reference | Type reference (TYPE) | INT4 | Time Interval in Seconds | 20090710 | ||
3 | Importing | TSTMP | Call by reference | Type reference (TYPE) | P | UTC Time Stamp | 20090710 |
Method SUBTRACTSECS on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
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 | UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun) | 20090710 | ||
2 | Importing | TSTMP | Call by reference | Type reference (TYPE) | TZNTSTMPS | UTC Time Stamp | 20090710 |
Method TSTMP2SECS on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method TSTMP_TO_SECS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | SECS | Value transfer | Type reference (TYPE) | TZNTSTMPL | Time Interval in Seconds (as from 01.01.0001 00:00:00) | 20120326 | ||
2 | Importing | TSTMP | Call by reference | Type reference (TYPE) | P | UTC Time Stamp | 20120326 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_PARAMETER_INVALID_RANGE | Parameter with Invalid Range | 20120326 | |
2 | CX_PARAMETER_INVALID_TYPE | Parameter with Invalid Type | 20120326 |
History
Last changed by/on | SAP | 20141109 |
SAP Release Created in | 700 |