SAP ABAP Class CL_ABAP_TIMEFM (Time Format)
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_TIMEFM | |
Short Description | Time Format | |
Super Class | ||
Instantiability of a Class | 0 | Private |
Final |
General Data
Message Class | ||
Program status | S | System Program |
Category | 0 | |
Package | SABP_CONVERT | Conversion of Time Specifications |
Created | 20070717 | SAP |
Last change | 20110908 | SAP |
Shared Memory-enabled | ||
Fixed point arithmetic | ||
Unicode checks active |
Forward declarations
# | Type group / Object type | Type | Type Description |
---|---|---|---|
1 | ABAP | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
Class CL_ABAP_TIMEFM has no interface implemented.
Friends
Class CL_ABAP_TIMEFM has no friend class.
Attributes
# | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ENVIRONMENT | Constant | Public | Type reference (TYPE) | TY_FORMAT | 3 | Time Format According to Environment (SET COUNTRY) | 20070717 | |
2 | FM_0_11H_LOWER | Constant | Public | Type reference (TYPE) | XUTIMEFM | '4' | Time Format (12-Hour Specification) 0 to 11 am/pm | 20070807 | |
3 | FM_0_11H_UPPER | Constant | Public | Type reference (TYPE) | XUTIMEFM | '3' | Time Format (12-Hour Specification) 0 to 11 AM/PM | 20070807 | |
4 | FM_12H_LOWER | Constant | Public | Type reference (TYPE) | XUTIMEFM | '2' | Time Format (12-Hour Specification) 1 to 12 am/pm | 20070807 | |
5 | FM_12H_UPPER | Constant | Public | Type reference (TYPE) | XUTIMEFM | '1' | Time Format (12-Hour Specification) 1 to 12 AM/PM | 20070807 | |
6 | FM_24H | Constant | Public | Type reference (TYPE) | XUTIMEFM | '0' | Time Format (24-Hour Specification) 0 to 23 | 20070807 | |
7 | ISO | Constant | Public | Type reference (TYPE) | TY_FORMAT | 1 | Time Format HH:MM:SS (Without AM/PM) | 20070717 | |
8 | MAX_TIME_OUTPUT_LEN | Constant | Public | Type reference (TYPE) | I | 11 | Maximum Output Length | 20070807 | |
9 | USER | Constant | Public | Type reference (TYPE) | TY_FORMAT | 2 | Time Format According toUser Master Record | 20070717 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | CONV_TIME_EXT_TO_INT | Static method | Public | Method | Conversion: External Time Format -> Internal Time Format | 20070717 |
2 | CONV_TIME_INT_TO_EXT | Static method | Public | Method | Conversion: Internal Time Format -> External Time Format | 20070816 |
3 | GET_COUNTRY_TIMEFM | Static method | Public | Method | Time Format of a Country | 20070814 |
4 | GET_ENVIRONMENT_TIMEFM | Static method | Public | Method | Time Format Currently Active | 20070807 |
5 | GET_OUTPUT_LENGTH | Static method | Public | Method | Output Length | 20070822 |
6 | GET_USER_TIMEFM | Static method | Public | Method | Time Format of User | 20070814 |
7 | PRIV_CONV_TIME_EXT_TO_INT | Static method | Private | Method | Conversion: External Time Format -> Internal Time Format | 20080923 |
Events
Class CL_ABAP_TIMEFM has no event.
Types
# | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
---|---|---|---|---|---|---|---|
1 | TY_FORMAT | Public | Type reference (TYPE) | I | 20070717 |
|
Method Signatures
Method CONV_TIME_EXT_TO_INT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IS_24_ALLOWED | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Ist 24:00 Uhr erlaubt? | 20070822 | |
2 | Importing | TIME_EXT | Value transfer | Type reference (TYPE) | CSEQUENCE | Externe Darstellung der Zeit | 20070822 | ||
3 | Exporting | TIME_INT | Call by reference | Type reference (TYPE) | T | Interne Darstellung der Zeit | 20070822 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_ABAP_TIMEFM_INVALID | Externe Zeitdarstellung ungültig | 20070717 |
Method CONV_TIME_INT_TO_EXT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | FORMAT_ACCORDING_TO | Call by reference | Type reference (TYPE) | TY_FORMAT | ENVIRONMENT | Format gemäß ENVIRONMENT oder ISO | 20070821 | |
2 | Exporting | TIME_EXT | Call by reference | Type reference (TYPE) | STRING | Externe Zeitdarstellung | 20070822 | ||
3 | Importing | TIME_INT | Value transfer | Type reference (TYPE) | T | Type T für internes Zeitformat | 20070822 | ||
4 | Importing | WITHOUT_SECONDS | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Flag für Sekunden | 20070822 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_PARAMETER_INVALID_RANGE | Parameter FORMAT_ACCORDING_TO ist ungültig | 20070821 |
Method GET_COUNTRY_TIMEFM Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | COUNTRY | Call by reference | Type reference (TYPE) | T005X-LAND | Land | 20070815 | ||
2 | Returning | TIMEFM | Value transfer | Type reference (TYPE) | XUTIMEFM | Zeitformat (12-/24-Stundenangabe) | 20070821 |
Method GET_COUNTRY_TIMEFM on class CL_ABAP_TIMEFM has no exception.
Method GET_ENVIRONMENT_TIMEFM Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | TIMEFM | Value transfer | Type reference (TYPE) | XUTIMEFM | Zeitformat (12-/24-Stundenangabe) | 20070807 |
Method GET_ENVIRONMENT_TIMEFM on class CL_ABAP_TIMEFM has no exception.
Method GET_OUTPUT_LENGTH Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | FORMAT_ACCORDING_TO | Call by reference | Type reference (TYPE) | TY_FORMAT | ENVIRONMENT | Format gemäß ENVIRONMENT oder ISO | 20070822 | |
2 | Returning | LENGTH | Value transfer | Type reference (TYPE) | I | Ausgabelänge für externe Zeitdarstellung | 20070822 | ||
3 | Importing | WITHOUT_SECONDS | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Flag für Sekunden | 20070822 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_PARAMETER_INVALID_RANGE | Parameter FORMAT_ACCORDING_TO ist ungültig | 20070822 |
Method GET_USER_TIMEFM Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | TIMEFM | Value transfer | Type reference (TYPE) | XUTIMEFM | Zeitformat (12-/24-Stundenangabe) | 20070821 |
Method GET_USER_TIMEFM on class CL_ABAP_TIMEFM has no exception.
Method PRIV_CONV_TIME_EXT_TO_INT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IS_24_ALLOWED | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Ist 24:00 Uhr erlaubt? | 20080923 | |
2 | Exporting | RC | Call by reference | Type reference (TYPE) | I | Return Code | 20080923 | ||
3 | Importing | TIME_EXT | Call by reference | Type reference (TYPE) | CSEQUENCE | Externe Darstellung der Zeit | 20080923 | ||
4 | Exporting | TIME_INT | Call by reference | Type reference (TYPE) | T | Interne Darstellung der Zeit | 20080923 |
Method PRIV_CONV_TIME_EXT_TO_INT on class CL_ABAP_TIMEFM has no exception.
History
Last changed by/on | SAP | 20110908 |
SAP Release Created in | 710 |