SAP ABAP Class CL_TIMEFORMAT_SIMPLE (Simple Formatter for Times)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-SRV-TIM-TR (Application Component) Date Rules
⤷
SZTI (Package) Central Basis Development: Time ('Time/Event')

⤷

⤷

Meta Relationship - Using
# | Relationship type | Using | Short Description | Created on |
---|---|---|---|---|
1 | Interface implementation (CLASS c. INTERFACES i_ref) | IF_TIMEFORMAT | Input/Output of Times | 20010117 |
Properties
Class | CL_TIMEFORMAT_SIMPLE | |
Short Description | Simple Formatter for Times | |
Super Class | ||
Instantiability of a Class | 2 | Public |
Final |
General Data
Message Class | ||
Program status | P | SAP Standard Production Program |
Category | 0 | |
Package | SZTI | Central Basis Development: Time ('Time/Event') |
Created | 20010117 | SAP |
Last change | 20140121 | SAP |
Shared Memory-enabled | ||
Fixed point arithmetic | ||
Unicode checks active |
Forward declarations
Class CL_TIMEFORMAT_SIMPLE has no forward declaration.
Interfaces
# | Interface | Abstract | Final | Description | Created on |
---|---|---|---|---|---|
1 | IF_TIMEFORMAT | Input/Output of Times | 20010117 |
Friends
Class CL_TIMEFORMAT_SIMPLE has no friend class.
Attributes
# | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
Constant | Protected | Type reference (TYPE) | TIMEFMTRT | 'WD' | Return Type of a Time Format Command | 20010119 | |
2 | ![]() |
Instance attribute | Protected | Object reference (TYPE REF TO) | CL_TIMEFORMAT_CMD_BROKER | Time Format: Commands | 20010119 | ||
3 | ![]() |
Instance attribute | Protected | Object reference (TYPE REF TO) | IF_TIMECONTEXT | Context in Time Environment | 20010117 | ||
4 | ![]() |
Instance attribute | Protected | Type reference (TYPE) | D | 20010117 | |||
5 | ![]() |
Instance attribute | Protected | Type reference (TYPE) | XFLAG | New Input Values | 20010117 | ||
6 | ![]() |
Instance attribute | Protected | Type reference (TYPE) | T | 20010117 | |||
7 | ![]() |
Instance attribute | Protected | Type reference (TYPE) | XFLAG | New Input Values | 20010117 | ||
8 | ![]() |
Instance attribute | Protected | Object reference (TYPE REF TO) | CL_TIMEMESSAGE | Output Management in Date Environment | 20010117 | ||
9 | ![]() |
Instance attribute | Protected | Type reference (TYPE) | TIMEZONE | Time Zone | 20010117 | ||
10 | ![]() |
Constant | Public | Type reference (TYPE) | OPERATION_MODE | 'B' | 20130912 | ||
11 | ![]() |
Constant | Public | Type reference (TYPE) | OPERATION_MODE | 'N' | 20130912 | ||
12 | ![]() |
Constant | Public | Type reference (TYPE) | OPERATION_MODE | 'W' | 20130912 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | ![]() |
Instance method | Public | Constructor | Constructor | 20010117 |
2 | ![]() |
Instance method | Protected | Method | Creates formatted output | 20010119 |
3 | ![]() |
Instance method | Protected | Method | Determines default values | 20010122 |
4 | ![]() |
Instance method | Protected | Method | Determines default values from the profile^ | 20010122 |
5 | ![]() |
Static method | Public | Method | Convert date/time from the missing hour | 20130912 |
6 | ![]() |
Instance method | Protected | Method | Reads input | 20010119 |
7 | ![]() |
Instance method | Protected | Method | Splits intput into commands, date, and time | 20010119 |
Events
Class CL_TIMEFORMAT_SIMPLE has no event.
Types
# | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
---|---|---|---|---|---|---|---|
1 | OPERATION_MODE | Public | Type reference (TYPE) | CHAR1 | 20130912 |
|
Method Signatures
Method CONSTRUCTOR Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
CONTEXT | Call by reference | Object reference (TYPE REF TO) | IF_TIMECONTEXT | Kontext im Time - Umfeld | 20010117 | ||
2 | ![]() |
DEFAULT_DATE | Call by reference | Type reference (TYPE) | D | SY-DATLO | Vorschlag Datum | 20010122 | |
3 | ![]() |
DEFAULT_TIME | Call by reference | Type reference (TYPE) | T | SY-TIMLO | Vorschlag Uhrzeit | 20010122 | |
4 | ![]() |
DEFAULT_TIMEZONE | Call by reference | Type reference (TYPE) | TIMEZONE | SY-ZONLO | Vorschlag Zeitzone | 20010122 | |
5 | ![]() |
FORMAT | Call by reference | Type reference (TYPE) | TIMESFMT | Ausgabeformat von Zeitpunkten | 20010117 |
Method CONSTRUCTOR on class CL_TIMEFORMAT_SIMPLE has no exception.
Method FORMAT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
FORMAT | Call by reference | Type reference (TYPE) | TIMESFMT | Ausgabeformat von Zeitpunkten | 20010119 | ||
2 | ![]() |
OUTPUT | Call by reference | Type reference (TYPE) | TIME_IO | Feld für die Ein- und Ausgabe von Zeitpunkten | 20010119 | ||
3 | ![]() |
TIMESTAMP | Call by reference | Type reference (TYPE) | TIMESTAMP | UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) | 20010119 | ||
4 | ![]() |
TIMEZONE | Call by reference | Type reference (TYPE) | TIMEZONE | Zeitzone | 20010119 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
Schwerer Fehler | 20010119 |
Method GET_DEFAULTS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
DEFAULT_DATE | Call by reference | Type reference (TYPE) | D | 20010122 | |||
2 | ![]() |
DEFAULT_TIME | Call by reference | Type reference (TYPE) | T | 20010122 |
Method GET_DEFAULTS on class CL_TIMEFORMAT_SIMPLE has no exception.
Method GET_DEFAULTS_PROFILE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
DEFAULT_DATE | Call by reference | Type reference (TYPE) | D | 20010122 | |||
2 | ![]() |
DEFAULT_TIME | Call by reference | Type reference (TYPE) | T | 20010122 | |||
3 | ![]() |
EVENT_NAME | Call by reference | Type reference (TYPE) | TIMENAME | Objektname | 20010122 | ||
4 | ![]() |
FORMAT | Call by reference | Type reference (TYPE) | TIMESFMT | Ausgabeformat von Zeitpunkten | 20010122 | ||
5 | ![]() |
POS | Call by reference | Type reference (TYPE) | TIMEPOS | Position bei Zeitberechnungen (Beginn, Mitte, Ende) | 20010122 |
Method GET_DEFAULTS_PROFILE on class CL_TIMEFORMAT_SIMPLE has no exception.
Method MAKE_VALID_TIME Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
DATE_IN | Value transfer | Type reference (TYPE) | D | 20130912 | |||
2 | ![]() |
DATE_VALID | Call by reference | Type reference (TYPE) | D | Date in timezone format | 20130912 | ||
3 | ![]() |
MODE | Call by reference | Type reference (TYPE) | OPERATION_MODE | OP_MODE_WALLCLOCK | 20130912 | ||
4 | ![]() |
TIMESTAMP_UTC_VALID | Call by reference | Type reference (TYPE) | TIMESTAMP | UTC timestamp | 20130912 | ||
5 | ![]() |
TIME_IN | Value transfer | Type reference (TYPE) | T | 20130912 | |||
6 | ![]() |
TIME_VALID | Call by reference | Type reference (TYPE) | T | Time in timezone format | 20130912 | ||
7 | ![]() |
TIME_ZONE | Call by reference | Type reference (TYPE) | TZNZONE | Zeitzone | 20130912 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
Invalid input date or mode | 20130912 | |
2 | ![]() |
Error during timestamp calculation | 20130912 |
Method PARSE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
DEFAULT_DATE | Call by reference | Type reference (TYPE) | D | 20010119 | |||
2 | ![]() |
DEFAULT_TIME | Call by reference | Type reference (TYPE) | T | 20010119 | |||
3 | ![]() |
DEFAULT_TIMEZONE | Call by reference | Type reference (TYPE) | TIMEZONE | Zeitzone | 20010119 | ||
4 | ![]() |
INPUT | Call by reference | Type reference (TYPE) | TIME_IO | Feld für die Ein- und Ausgabe von Zeitpunkten | 20010119 | ||
5 | ![]() |
TIMESTAMP | Call by reference | Type reference (TYPE) | TIMESTAMP | UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) | 20010119 | ||
6 | ![]() |
TIMEZONE | Call by reference | Type reference (TYPE) | TIMEZONE | Zeitzone | 20010119 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
Fehler aufgetreten | 20010119 |
Method SPLIT_INPUT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
COMMANDS | Call by reference | Type reference (TYPE) | TIMETFMTC1 | Liste mit Referenzen auf if_timeformat_cmd | 20010119 | ||
2 | ![]() |
DATE_STR | Call by reference | Type reference (TYPE) | TIME_IO | Feld für die Ein- und Ausgabe von Zeitpunkten | 20010119 | ||
3 | ![]() |
INPUT | Call by reference | Type reference (TYPE) | TIME_IO | Feld für die Ein- und Ausgabe von Zeitpunkten | 20010119 | ||
4 | ![]() |
TIME_STR | Call by reference | Type reference (TYPE) | TIME_IO | Feld für die Ein- und Ausgabe von Zeitpunkten | 20010119 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
Fehler aufgetreten | 20010119 |
History
Last changed by/on | SAP | 20140121 |
SAP Release Created in | 610 |