* UTC-Zeitstempel nach POSIX-Standard
DATA(lv_utc_long) = utclong_current( ).
WRITE: / lv_utc_long.
* addiert die übergebenen Werte zu UTC-Zeitstempel
DATA(lv_utc_long_add) = utclong_add( val = lv_utc_long
days = 1000
hours = 100
minutes = 10 ).
WRITE: / lv_utc_long_add.
* berechnet die Zeitdifferenz zwischen zwei UTC-Zeitstempeln
DATA(lv_utc_long_diff) = utclong_diff( high = lv_utc_long_add
low = lv_utc_long ).
WRITE: / lv_utc_long_diff.
* Zeitdauer zwischen zwei Zeitstempelwerten bestimmen
cl_abap_utclong=>diff( EXPORTING high = lv_utc_long_add
low = lv_utc_long
IMPORTING days = DATA(lv_days)
hours = DATA(lv_hours)
minutes = DATA(lv_minutes)
seconds = DATA(lv_seconds) ).
WRITE: / lv_days.
WRITE: / lv_hours.
WRITE: / lv_minutes.
WRITE: / lv_seconds.