DATA: lv_utc TYPE timestamp.
DATA: lv_date TYPE d.
DATA: lv_time TYPE t.
START-OF-SELECTION.
GET TIME STAMP FIELD lv_utc.
TRY.
cl_abap_tstmp=>systemtstmp_utc2syst( EXPORTING
utc_tstmp = lv_utc
IMPORTING
syst_date = lv_date
syst_time = lv_time ).
WRITE: / |UTC: { lv_utc TIMESTAMP = USER }|.
WRITE: / |System-Datum: { lv_date DATE = USER }|.
WRITE: / |System-Zeit: { lv_time TIME = USER }|.
CATCH cx_root INTO DATA(e_text).
WRITE: / e_text->get_text( ).
ENDTRY.
Archiv
Meta
-
Related Posts
- [ABAP] Systemzeit in UTC-Zeit (TIMESTAMP) wandeln
- [ABAP] UTC-Zeit (TIMESTAMP) in Datum (d) und Uhrzeit (t) splitten
- [ABAP] string-Formatierungen mit String-Templates
- [ABAP] Mit Zeitstempel rechnen
- [ABAP] UTC-long-Zeitstempel nach POSIX-Standard in Datum und Zeit splitten
- [ABAP] Zeit zu Zeit und Datum rechnen
- [ABAP] Zeitstempel (timestamp) in OADate (Ole Automation Date) umrechnen
- [ABAP] Datentypen für Zeitdarstellung und deren Verwendung
- [ABAP] Eine bestimmte Zeit (Sekundenbruchteile) warten
- [ABAP] NativeSQL: Zugriff auf eine Oracle-Datenbank
Tags
ABAP (1020) Android (16) CLASS (20) cl_abap_list_layout (19) cl_bcs_convert (29) cl_gui_alv_grid (24) cl_gui_container (42) cl_gui_docking_container (25) cl_gui_frontend_services (50) cl_salv_table (64) cntl_simple_event (16) create (27) Date (16) default_screen (28) display (14) EWM (17) Fiori (23) FREE OBJECT (15) get_columns (22) gui_download (15) HTML (21) JavaScript (82) JSON (25) MIME (17) NEW (20) OData (34) ole2_object (15) OpenSQL (44) Python (23) Raspberry Pi (50) Raspberry Pi 2 (27) Raspberry Pi 4 (23) Raspian (22) RegEx (19) SAP (361) SAPUI5 (27) SELECT (25) String (33) stringtab (15) suppress_toolbar (19) UTF-8 (15) Value (27) XML (29) xstring (20) xstring_to_solix (15)