SAP ABAP Class CL_ECSTAT_UTIL_TIME (Utility Classe for Time Functions)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-TWB-TST-ECA (Application Component) eCATT Extended Computer Aided Test Tool
⤷
SECATT_STAT (Package) eCATT Statistics
⤷
⤷
Properties
| Class | CL_ECSTAT_UTIL_TIME | |
| Short Description | Utility Classe for Time Functions | |
| Super Class | ||
| Instantiability of a Class | 0 | Private |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | SECATT_STAT | eCATT Statistics |
| Created | 20100623 | SAP |
| Last change | 20110908 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
Class CL_ECSTAT_UTIL_TIME has no interface implemented.
Friends
Class CL_ECSTAT_UTIL_TIME has no friend class.
Attributes
Class CL_ECSTAT_UTIL_TIME has no attribute.
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Compares Two Dates | 20100624 | |
| 2 | Static method | Public | Method | Compares Two Time Stamps | 20100629 | |
| 3 | Static method | Public | Method | Coverts a Date to a Time Stamp (UTC) | 20100629 | |
| 4 | Static method | Public | Method | Converts date YYYYMMDD to string DD.MM.YYYY | 20101123 | |
| 5 | Static method | Public | Method | Coverts Time Stamp (UTC) to a Date | 20100623 | |
| 6 | Static method | Public | Method | Converts Time Stamp (UTC) to Date and Time | 20100623 | |
| 7 | Static method | Public | Method | Returns Difference in CWs Between Two Time Stamps | 20100623 | |
| 8 | Static method | Public | Method | Returns Diff. Between Two Time Stamps in Secs, Mins, Hours | 20100630 | |
| 9 | Static method | Public | Method | Gets first date value for current year (1st Jan) | 20101108 | |
| 10 | Static method | Public | Method | Returns Difference Between Two Time Stamps in Months | 20100623 | |
| 11 | Static method | Public | Method | Returns Month Name for a Date | 20100623 | |
| 12 | Static method | Public | Method | Gets day of week corresponding to a date | 20101111 | |
| 13 | Static method | Public | Method | Returns Calendar Week and Year for a Date | 20100623 | |
| 14 | Static method | Public | Method | Returns Calendar Week and Year for a Time Stamp | 20100623 | |
| 15 | Static method | Public | Method | Returns Month Name and Year for a Date | 20100623 | |
| 16 | Static method | Public | Method | Returns Month Name and Year for a Time Stamp | 20100623 | |
| 17 | Static method | Public | Method | Checks if Two Time Stamps are in the Same CW | 20100623 | |
| 18 | Static method | Public | Method | Checks if Two Dates are in the Same Month | 20100623 | |
| 19 | Static method | Public | Method | Checks if Two Time Stamps are in the Same Month | 20100623 |
Events
Class CL_ECSTAT_UTIL_TIME has no event.
Types
Class CL_ECSTAT_UTIL_TIME has no local type.
Method Signatures
Method COMPARE_DATES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IMV_DATE_A | Call by reference | Type reference (TYPE) | DATS | Datum A | 20100624 | |||
| 2 | IMV_DATE_B | Call by reference | Type reference (TYPE) | DATS | Datum B | 20100624 | |||
| 3 | RTV_COMPARE_RESULT | Value transfer | Type reference (TYPE) | INT2 | -1, wenn A < B | 0 wenn A == B | +1 wenn A > B | 20100624 |
Method COMPARE_DATES on class CL_ECSTAT_UTIL_TIME has no exception.
Method COMPARE_TIMESTAMPS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IMV_TIMESTAMP_A | Call by reference | Type reference (TYPE) | TZNTSTMPS | Zeitstempel A | 20100629 | |||
| 2 | IMV_TIMESTAMP_B | Call by reference | Type reference (TYPE) | TZNTSTMPS | Zeitstempel B | 20100629 | |||
| 3 | RTV_COMPARE_RESULT | Value transfer | Type reference (TYPE) | INT2 | -1, wenn A < B | 0 wenn A == B | +1 wenn A > B | 20100629 |
Method COMPARE_TIMESTAMPS on class CL_ECSTAT_UTIL_TIME has no exception.
Method CONVERT_DATE_TO_TIMESTAMP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IMV_DATE | Call by reference | Type reference (TYPE) | DATS | Datum | 20100629 | |||
| 2 | RTV_TIMESTAMP | Value transfer | Type reference (TYPE) | TZNTSTMPS | Zeitstempel | 20100629 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Ausnahmen bei Zeitumwandlung, Zeitberechnung, etc. | 20100629 |
Method CONVERT_DATE_YMD_TO_DMY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IMV_DATE | Call by reference | Type reference (TYPE) | ECSTAT_RUN_DATE | Extraktionsdatum | 20101123 | |||
| 2 | RTV_DATE | Value transfer | Type reference (TYPE) | STRING | 20101123 |
Method CONVERT_DATE_YMD_TO_DMY on class CL_ECSTAT_UTIL_TIME has no exception.
Method CONVERT_TIMESTAMP_TO_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IMV_TIMESTAMP | Call by reference | Type reference (TYPE) | TZNTSTMPS | Zeitstempel | 20100623 | |||
| 2 | RTV_DATE | Value transfer | Type reference (TYPE) | DATS | Konv. Datum aus Zeitstempels | 20100623 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Ausnahmen bei Zeitumwandlung, Zeitberechnung, etc. | 20100623 |
Method CONVERT_TIMESTAMP_TO_DATETIME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EXV_DATE | Call by reference | Type reference (TYPE) | DATS | Konv. Datum aus Zeitstempels | 20100623 | |||
| 2 | EXV_TIME | Call by reference | Type reference (TYPE) | TIMS | Konv. Zeit aus zeitstempel | 20100623 | |||
| 3 | IMV_TIMESTAMP | Call by reference | Type reference (TYPE) | TZNTSTMPS | Zeitstempel | 20100623 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Ausnahmen bei Zeitumwandlung, Zeitberechnung, etc. | 20100623 |
Method GET_CW_DIFFERENCE_FOR_TS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IMV_TIMESTAMP_A | Call by reference | Type reference (TYPE) | TZNTSTMPS | Erster Zeitstempel | 20100623 | |||
| 2 | IMV_TIMESTAMP_B | Call by reference | Type reference (TYPE) | TZNTSTMPS | Zweiter Zeitstempel | 20100623 | |||
| 3 | RTV_CW_DIFF | Value transfer | Type reference (TYPE) | I | Anzahl vollständig. Kalenderwochen zwischen den Zeitstempeln | 20100623 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Ausnahmen bei Zeitumwandlung, Zeitberechnung, etc. | 20100623 |
Method GET_DIFFERENCE_FOR_TS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IMV_TIMESTAMP_A | Call by reference | Type reference (TYPE) | TZNTSTMPS | Zeitstempel A | 20100630 | |||
| 2 | IMV_TIMESTAMP_B | Call by reference | Type reference (TYPE) | TZNTSTMPS | Zeitstempel B | 20100630 | |||
| 3 | RTV_DIFF | Value transfer | Type reference (TYPE) | TIMS | Differenz B - A | 20100630 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Ausnahmen bei Zeitumwandlung, Zeitberechnung, etc. | 20100630 |
Method GET_FIRST_DATE_OF_YEAR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RTV_DATE | Value transfer | Type reference (TYPE) | DATS | Feld vom Typ DATS | 20101108 |
Method GET_FIRST_DATE_OF_YEAR on class CL_ECSTAT_UTIL_TIME has no exception.
Method GET_MONTH_DIFFERENCE_FOR_TS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IMV_TIMESTAMP_A | Call by reference | Type reference (TYPE) | TZNTSTMPS | Erster Zeitstempel | 20100623 | |||
| 2 | IMV_TIMESTAMP_B | Call by reference | Type reference (TYPE) | TZNTSTMPS | Zweiter Zeitstempel | 20100623 | |||
| 3 | RTV_MONTH_DIFF | Value transfer | Type reference (TYPE) | I | Anzahl vollständig. Monate zwischen den Zeitstempeln | 20100623 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Ausnahmen bei Zeitumwandlung, Zeitberechnung, etc. | 20100623 |
Method GET_MONTH_NAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IMV_DATE | Call by reference | Type reference (TYPE) | DATS | Datum | 20100623 | |||
| 2 | RTV_MONTH_NAME | Value transfer | Type reference (TYPE) | STRING | Monatsname | 20100623 |
Method GET_MONTH_NAME on class CL_ECSTAT_UTIL_TIME has no exception.
Method GET_WEEKDAY_FOR_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IMV_DATE | Call by reference | Type reference (TYPE) | DATS | 20101111 | ||||
| 2 | RTV_WEEKDAY | Value transfer | Type reference (TYPE) | ECSTAT_WEEKDAY | Wochentag | 20101111 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Ausnahmen bei Zeitumwandlung, Zeitberechnung, etc. | 20101111 |
Method GET_YEAR_CW_FOR_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EXV_CALENDAR_WEEK | Call by reference | Type reference (TYPE) | ECSTAT_CW | Kalenderwoche | 20100623 | |||
| 2 | EXV_YEAR | Call by reference | Type reference (TYPE) | ECSTAT_YEAR | Jahr | 20100623 | |||
| 3 | IMV_DATE | Call by reference | Type reference (TYPE) | DATS | Datum | 20100623 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Ausnahmen bei Zeitumwandlung, Zeitberechnung, etc. | 20100623 |
Method GET_YEAR_CW_FOR_TS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EXV_CALENDAR_WEEK | Call by reference | Type reference (TYPE) | ECSTAT_CW | Kalenderwoche | 20100623 | |||
| 2 | EXV_YEAR | Call by reference | Type reference (TYPE) | ECSTAT_YEAR | Jahr | 20100623 | |||
| 3 | IMV_TIMESTAMP | Call by reference | Type reference (TYPE) | TZNTSTMPS | Zeitstempel | 20100623 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Ausnahmen bei Zeitumwandlung, Zeitberechnung, etc. | 20100623 |
Method GET_YEAR_MONTH_NAME_FOR_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EXV_MONTH_NAME | Call by reference | Type reference (TYPE) | ECSTAT_MONTH | Monat | 20100623 | |||
| 2 | EXV_YEAR | Call by reference | Type reference (TYPE) | ECSTAT_YEAR | Jahr | 20100623 | |||
| 3 | IMV_DATE | Call by reference | Type reference (TYPE) | DATS | Datum | 20100623 |
Method GET_YEAR_MONTH_NAME_FOR_DATE on class CL_ECSTAT_UTIL_TIME has no exception.
Method GET_YEAR_MONTH_NAME_FOR_TS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EXV_MONTH_NAME | Call by reference | Type reference (TYPE) | ECSTAT_MONTH | Monat | 20100623 | |||
| 2 | EXV_YEAR | Call by reference | Type reference (TYPE) | ECSTAT_YEAR | Jahr | 20100623 | |||
| 3 | IMV_TIMESTAMP | Call by reference | Type reference (TYPE) | TZNTSTMPS | Zeitstempel | 20100623 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Ausnahmen bei Zeitumwandlung, Zeitberechnung, etc. | 20100623 |
Method IS_SAME_CW_FOR_TIMESTAMP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IMV_TIME_A | Call by reference | Type reference (TYPE) | TZNTSTMPS | Zeitstempel A | 20100623 | |||
| 2 | IMV_TIME_B | Call by reference | Type reference (TYPE) | TZNTSTMPS | Zeitstempel B | 20100623 | |||
| 3 | RTV_SAME_CALENDAR_WEEK | Value transfer | Type reference (TYPE) | ABAP_BOOL | Liegen A und B in selber Kalenderwoche | 20100623 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Ausnahmen bei Zeitumwandlung, Zeitberechnung, etc. | 20100623 |
Method IS_SAME_MONTH_FOR_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IMV_DATE_A | Call by reference | Type reference (TYPE) | DATS | Datum A | 20100623 | |||
| 2 | IMV_DATE_B | Call by reference | Type reference (TYPE) | DATS | Datum B | 20100623 | |||
| 3 | RTV_SAME_MONTH | Value transfer | Type reference (TYPE) | ABAP_BOOL | Liegen A und B im selben Monat | 20100623 |
Method IS_SAME_MONTH_FOR_DATE on class CL_ECSTAT_UTIL_TIME has no exception.
Method IS_SAME_MONTH_FOR_TIMESTAMP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IMV_TIME_A | Call by reference | Type reference (TYPE) | TZNTSTMPS | Zeitstempel A | 20100623 | |||
| 2 | IMV_TIME_B | Call by reference | Type reference (TYPE) | TZNTSTMPS | Zeitstempel B | 20100623 | |||
| 3 | RTV_SAME_MONTH | Value transfer | Type reference (TYPE) | ABAP_BOOL | Liegen A und B im selben Monat | 20100623 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Ausnahmen bei Zeitumwandlung, Zeitberechnung, etc. | 20100623 |
History
| Last changed by/on | SAP | 20110908 |
| SAP Release Created in | 730 |