SAP ABAP Class CL_I18_CALENDAR (CL_I18_CALENDAR)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-I18 (Application Component) Internationalization (I18N)
⤷
SI18N_CALENDAR (Package) Test
⤷
⤷
Meta Relationship - Used By
| # | Relationship type | Used by | Short Description | Created on |
|---|---|---|---|---|
| 1 | Inheritance (c INHERITING FROM c_ref) | CL_I18_CALENDAR_GREG | 20060529 | |
| 2 | Inheritance (c INHERITING FROM c_ref) | CL_I18_CALENDAR_ISL | 20060529 |
Properties
| Class | CL_I18_CALENDAR | |
| Short Description | ||
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | SI18N_CALENDAR | Test |
| Created | 20060529 | SAP |
| Last change | 20070911 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
Class CL_I18_CALENDAR has no forward declaration.
Interfaces
Class CL_I18_CALENDAR has no interface implemented.
Friends
Class CL_I18_CALENDAR has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Instance attribute | Protected | Type reference (TYPE) | SY-LANGU | Language Key of Current Text Environment | 20060529 | |||
| 2 | Constant | Protected | Type reference (TYPE) | I | 12 | number of monthes | 20060529 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Constructor | CONSTRUCTOR | 20060529 | |
| 2 | Instance method | Public | Method | returns current date valid for current calendar | 20060529 | |
| 3 | Instance method | Public | Method | Get the Day name of the week | 20060529 | |
| 4 | Instance method | Public | Method | returns day of week for supplied date | 20060529 | |
| 5 | Instance method | Public | Method | returns number of days in month of given date | 20060529 | |
| 6 | Instance method | Public | Method | 20060529 | ||
| 7 | Instance method | Public | Method | returns name of month (supplied as number) in set language | 20060529 | |
| 8 | Instance method | Public | Method | Get Day Name Short text | 20060529 | |
| 9 | Instance method | Public | Method | returns short name of month (supplied as number) | 20060529 | |
| 10 | Instance method | Public | Method | returns week number | 20060529 | |
| 11 | Instance method | Public | Method | parces and converts internal date in current calendar | 20060529 | |
| 12 | Instance method | Public | Method | decreases number of days from given date | 20060529 | |
| 13 | Instance method | Public | Method | decreases number of monthes from given date | 20060529 | |
| 14 | Instance method | Public | Method | decreases number of years from given date | 20060529 | |
| 15 | Instance method | Public | Method | adds number of days to given date | 20060529 | |
| 16 | Instance method | Public | Method | adds number of monthes to given date | 20060529 | |
| 17 | Instance method | Public | Method | adds number of years to given date | 20060529 |
Events
Class CL_I18_CALENDAR has no event.
Types
Class CL_I18_CALENDAR has no local type.
Method Signatures
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_LANG | Value transfer | Type reference (TYPE) | SY-LANGU | 20060529 |
Method CONSTRUCTOR on class CL_I18_CALENDAR has no exception.
Method GETDATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_DATE | Value transfer | Object reference (TYPE REF TO) | CL_I18_DATEC | 20060529 |
Method GETDATE on class CL_I18_CALENDAR has no exception.
Method GETDAYNAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_DAY_NAME | Call by reference | Type reference (TYPE) | TEXT20 | Day long text | 20060529 | |||
| 2 | IM_DAY | Call by reference | Type reference (TYPE) | INT4 | Natural number | 20060529 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Parameter mit ungültigem Wertebereich | 20060529 |
Method GETDAYOFWEEK Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_DAY_NUM | Value transfer | Type reference (TYPE) | I | 20060529 | ||||
| 2 | IM_DATE | Call by reference | Object reference (TYPE REF TO) | CL_I18_DATEC | 20060529 |
Method GETDAYOFWEEK on class CL_I18_CALENDAR has no exception.
Method GETDAYSOFMONTH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_NUM | Value transfer | Type reference (TYPE) | I | 20060529 | ||||
| 2 | IM_DATE | Call by reference | Object reference (TYPE REF TO) | CL_I18_DATEC | 20060529 |
Method GETDAYSOFMONTH on class CL_I18_CALENDAR has no exception.
Method GETFIRSTWEEKDAYOFMONTH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_DAY_NUM | Value transfer | Type reference (TYPE) | I | 20060529 | ||||
| 2 | IM_DATE | Call by reference | Object reference (TYPE REF TO) | CL_I18_DATEC | 20060529 |
Method GETFIRSTWEEKDAYOFMONTH on class CL_I18_CALENDAR has no exception.
Method GETMONTHNAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_MONTH_NAME | Value transfer | Type reference (TYPE) | FCLTX | Month long text | 20060529 | |||
| 2 | IM_MONTH | Value transfer | Type reference (TYPE) | I | month number | 20060529 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Parameter mit ungültigem Wertebereich | 20060529 |
Method GETSHORTDAYNAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_DAY_NAME | Call by reference | Type reference (TYPE) | TEXT2 | Version Number Component | 20060529 | |||
| 2 | IM_DAY | Call by reference | Type reference (TYPE) | INT4 | Natural number | 20060529 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Parameter mit ungültigem Wertebereich | 20060529 |
Method GETSHORTMONTHNAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_MONTH_NAME | Call by reference | Type reference (TYPE) | FCKTX | Month short text | 20060529 | |||
| 2 | IM_MONTH | Call by reference | Type reference (TYPE) | I | month number | 20060529 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Parameter with Invalid Range | 20060529 |
Method GETWEEKNUMBER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_WEEKNUM | Call by reference | Type reference (TYPE) | I | 20060529 | ||||
| 2 | IM_DATE | Call by reference | Object reference (TYPE REF TO) | CL_I18_DATEC | 20060529 |
Method GETWEEKNUMBER on class CL_I18_CALENDAR has no exception.
Method INT_TO_EXT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EX_DAY | Value transfer | Type reference (TYPE) | I | 20060529 | ||||
| 2 | EX_MONTH | Value transfer | Type reference (TYPE) | I | 20060529 | ||||
| 3 | EX_YEAR | Value transfer | Type reference (TYPE) | I | 20060529 | ||||
| 4 | IM_DATE | Value transfer | Type reference (TYPE) | D | 20060529 |
Method INT_TO_EXT on class CL_I18_CALENDAR has no exception.
Method MINUSDAYS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_DATE | Call by reference | Object reference (TYPE REF TO) | CL_I18_DATEC | from which date to remove days | 20060529 | |||
| 2 | IM_REM | Call by reference | Type reference (TYPE) | I | how many days to remove | 20060529 |
Method MINUSDAYS on class CL_I18_CALENDAR has no exception.
Method MINUSMONTHS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_DATE | Call by reference | Object reference (TYPE REF TO) | CL_I18_DATEC | from which date to remove monthes | 20060529 | |||
| 2 | IM_REM | Call by reference | Type reference (TYPE) | I | how many monthes to remove | 20060529 |
Method MINUSMONTHS on class CL_I18_CALENDAR has no exception.
Method MINUSYEARS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_DATE | Value transfer | Object reference (TYPE REF TO) | CL_I18_DATEC | from which date to remove years | 20060529 | |||
| 2 | IM_REM | Value transfer | Type reference (TYPE) | I | how many years to remove | 20060529 |
Method MINUSYEARS on class CL_I18_CALENDAR has no exception.
Method PLUSDAYS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_ADD | Call by reference | Type reference (TYPE) | I | how many days to add | 20060529 | |||
| 2 | IM_DATE | Call by reference | Object reference (TYPE REF TO) | CL_I18_DATEC | to which date to add | 20060529 |
Method PLUSDAYS on class CL_I18_CALENDAR has no exception.
Method PLUSMONTHS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_ADD | Call by reference | Type reference (TYPE) | I | how many monthes to add | 20060529 | |||
| 2 | IM_DATE | Call by reference | Object reference (TYPE REF TO) | CL_I18_DATEC | to which date to add | 20060529 |
Method PLUSMONTHS on class CL_I18_CALENDAR has no exception.
Method PLUSYEARS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_ADD | Value transfer | Type reference (TYPE) | I | how many years to add | 20060529 | |||
| 2 | IM_DATE | Value transfer | Object reference (TYPE REF TO) | CL_I18_DATEC | to which date to add years | 20060529 |
Method PLUSYEARS on class CL_I18_CALENDAR has no exception.
History
| Last changed by/on | SAP | 20070911 |
| SAP Release Created in | 710 |