12-Hour Time Format
Use
The 12-hour time format is supported for the development of Web Dynpro ABAP applications. This makes it possible to use the am/pm designations that are usual in English-speaking countries.
For more information on the 12-hour time format, see Time Format in the ABAP keyword documentation (transaction ABAPHELP) in the system.
Prerequisites
You can define the desired time format for your user in your user data.
-
Choose .
-
Go to the Defaults tab page.
-
In the field for setting the time format, select the required option from the following entries:
-
24-hour format (example: 12:05:10)
-
12-hour format (example: 12:05:10 PM)
-
12-hour format (example: 12:05:10 pm)
-
Hours from 0 to 11 (example: 00:05:10 PM)
-
Hours from 0 to 11 (example: 00:05:10 pm)
-
-
Save your entries.
Features
The following formats are used depending on the default values for the user:
|
24-hour format |
12-hour format (1-12) |
12-hour format (0-11) |
|---|---|---|
|
00:00:00 |
12:00:00 AM |
00:00:00 |
|
00:00:01 |
12:00:01 AM |
00:00:01 |
|
00:59:59 |
12:59:59 AM |
00:59:59 |
|
01:00:00 |
01:00:00 |
01:00:00 |
|
11:59:59 |
11:59:59 AM |
11:59:59 AM |
|
12:00:00 |
12:00:00 PM |
00:00:00 PM |
|
12:59:59 |
12:59:59 PM |
00:59:59 PM |
|
13:00:00 |
01:00:00 PM |
01:00:00 PM |
|
23:59:59 |
11:59:59 PM |
11:59:59 PM |
|
24:00:00 |
24:00:00 PM |
24:00:00 PM |
The table contains entries for three of the five supported formats; the other two formats differ only in that they use small writing for am and pm
Example
There are examples of the different time formats in the system in the WDR_TEST_INPUT and WDR_TEST_OUTPUT components.

